posted 15 years ago
Hello Ranchers
I am using TreeMap so that all my data will be sorted on the basis of keys. It work fine for me except that it sorts all the data based on the upper case and lower case . For e.g. If my keys are A,c,E,D,b the sorted output will be A,D,E,b,c . However I dont want to sort the data based on the case sensitivity. The desire output for me is A,b,c,D,E . Is there any collection which can gimme this kinda sorting. Using comparator is one of the option . But I am just trying to explore something apart from comparator.
Thanks
Samir