Created
August 29, 2015 17:32
-
-
Save honzajavorek/6e8bd3611e396c191463 to your computer and use it in GitHub Desktop.
Czech collation in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import icu | |
stuff = ... | |
collator = icu.Collator.createInstance(icu.Locale('cs_CZ.UTF-8')) | |
stuff.sort(key=collator.getSortKey) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment