I need to check the sorting in the table and table content is given by MySQL. I\'m using the following row to sort the list:
Collections.sort(sorted, String.CASE_I
Use [Collator][1]
:
The Collator class performs locale-sensitive String comparison. You use this class to build searching and sorting routines for natural language text.
And code will be:
Collator coll = Collator.getInstance(Locale.US);
coll.setStrength(Collator.IDENTICAL);
Collections.sort(words, coll);