Created
December 30, 2009 14:02
-
-
Save Riduidel/266066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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