Reputation: 981
I am in the process of localizing my android application to Japanese. I have the localized strings. But for example, when displaying a list, I need the strings to be displayed in an alphabetical order.
Is there a way I can sort Japanese strings alphabetically (because all I see is symbols :P).
Upvotes: 4
Views: 2779
Reputation: 48404
Comparator
examining code points for hiragana and katakana (and romanji), and pass it as an argument of your sort
invocation. Upvotes: 0
Reputation: 2189
Have you tried using collator:
Collator collator = Collator.getInstance(Locale.JAPANESE);
Collections.sort(list, collator);
?
Upvotes: 3