collation

How do I sort unicode strings alphabetically in Python?

How do I sort unicode strings alphabetically in Python? Question: Python sorts by byte value by default, which means é comes after z and other equally funny things. What is the best way to sort alphabetically in Python? Is there a library for this? I couldn’t find anything. Preferrably sorting should have language support so …

Total answers: 11