Code example for Collator

Methods: compare

    private final static Comparator<Map<String, Object>> sDisplayNameComparator =
            new Comparator<Map<String, Object>>() { 
                private final Collator collator = Collator.getInstance(); 
                public int compare(Map<String, Object> map1, Map<String, Object> map2) { 
                    return"title"), map2.get("title")); 
    protected Intent activityIntent(String pkg, String componentName) {
        Intent result = new Intent();
        result.setClassName(pkg, componentName);
        return result;
    protected Intent browseIntent(String path) {
        Intent result = new Intent();
        result.setClass(this, HwTests.class);
        result.putExtra(EXTRA_PATH, path);
        return result;
Connect your IDE to all the code out there  Get Codota for Java