final Collator es_ESCollator = Collator.getInstance(new Locale("es","ES"));
final Collator fr_FRCollator = Collator.getInstance(Locale.FRANCE);
+ // String.compareTo and String.compareToIgnoreCase are using UNICODE
+ // values directly
+ //final String test = "GUS";
+ //test.compareToIgnoreCase("gus");
+
+ es_ESCollator.setStrength(Collator.TERTIARY);
Collections.sort(wordsListES, es_ESCollator);
+ fr_FRCollator.setStrength(Collator.TERTIARY);
Collections.sort(wordsListFR, fr_FRCollator);
System.out.println("Words list ES: " + wordsListES);