æøå is the latest letters in the norwegian alphabet
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Æ Ø Å
List<String> words = Arrays.asList(
"A", "B", "Z", "Æ", "Ø", "Å" );
Locale la = new Locale("nor", "NOR");
Collator coll = Collator.getInstance(la);
coll.setStrength(Collator.PRIMARY);
Collections.sort(words, coll);
System.out.println(""+ words);
The answer should be
A, B, Z, Æ, Ø Å,
But i am getting:
A, Å, Æ, B, Z, Ø
Can anyone suggest how to get above output?