Sorting a list of Unicode strings?

Stefan Behnel stefan.behnel-n05pAM at
Sun Aug 19 19:01:38 CEST 2007

oliver at wrote:
> Hey Guys,

... and girls - maybe ...

> Maybe I'm missing something fundamental here, but if I have a list of
> Unicode strings, and I want to sort these alphabetically, then it
> places those that begin with unicode characters at the bottom.

That's because "Unicode" is more than one alphabet. unicode objects compare
based on the Unicode character value, so sort() does alike.


More information about the Python-list mailing list