Sorting a list of Unicode strings?
Stefan Behnel
stefan.behnel-n05pAM at web.de
Sun Aug 19 13:01:38 EDT 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.
Stefan
More information about the Python-list
mailing list