I want to sort a list of strings. I know this is not difficult in scala, but my problem is that I need to sort the lists in different languages. For example, I know that I can sort strings in English very easily. But what about the Russian language or Romanian? What is the best practice for sorting strings in multiple languages ββin scala? Does the scala collation implement only English letters?
In java, I would do something like this:
Collator coll = Collator.getInstance(locale); coll.setStrength(Collator.PRIMARY) Collections.sort(words, coll);
I hope someone out there can help me. Thanks in advance Nico.
string sorting scala internationalization localization
Nico
source share