Sorting a list of Unicode strings?
stefan.behnel-n05pAM at web.de
Sun Aug 19 19:01:38 CEST 2007
oliver at obeattie.com 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