in ASCII it does :) capital letters
ah HA!
haha, yeah, I guess TreeMaps don't sort case insensitive. haha. I only tested it with lower case user names.
If you don't specify a Comparator, it uses "natural order" (for anything that sorts. You could fix this by instantiating the TreeMap with the following Comparator:
public class IgnoreCaseStringComparator implements Comparator {
public int compare(Object o1, Object o2) {
((String)o1).compareToIgnoreCase((String)o2);
}
}
also check if they are null in the comparator, and if they are both String objects.
(I love Comparators)