Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created December 30, 2009 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Riduidel/266066 to your computer and use it in GitHub Desktop.
Save Riduidel/266066 to your computer and use it in GitHub Desktop.
public class CollatorComparator implements Comparator {
private Collator collator = Collator.getInstance();
public int compare(Object _o1, Object _o2) {
return collator.compare(_o1.toString().toUpperCase(), _o2.toString().toUpperCase());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment