Sorting using the Unicode Collation Algorithm (UCA) is available with PyPi package PyICU.
fromPyICUimportCollatorcollator=Collator.createInstance()
sorted=sorted(unsorted, key=collator.getSortKey)The PyICU package also supports linguistic tailoring.
fromPyICUimportCollator, Localecollator=Collator.createInstance(Locale('de'))
sorted=sorted(unsorted, key=collator.getSortKey)