Skip to content

Instantly share code, notes, and snippets.

@honzajavorek
Created August 29, 2015 17:32
Show Gist options
  • Save honzajavorek/6e8bd3611e396c191463 to your computer and use it in GitHub Desktop.
Save honzajavorek/6e8bd3611e396c191463 to your computer and use it in GitHub Desktop.
Czech collation in Python
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