public int compare(Object obj1, Object obj2) { CollationKey key1 = collator.getCollationKey(((GeopistaMap) obj1).getName()); CollationKey key2 = collator.getCollationKey(((GeopistaMap) obj2).getName()); int diferencia = key1.compareTo(key2); if (diferencia > 0) return -1; else if (diferencia < 0) return 1; else return 0; }
public int compare(Object obj1, Object obj2) { CollationKey key1 = collator.getCollationKey(((GeopistaMap) obj1).getName()); CollationKey key2 = collator.getCollationKey(((GeopistaMap) obj2).getName()); return key1.compareTo(key2); }