I\'ve got a problem with sorting lists using unicode collation in Python 2.5.1 and 2.6.5 on OSX, as well as on Linux.
import locale locale.setlocale(loca
import locale from functools import cmp_to_key iterable = [u'a', u'z', u'ą'] sorted(iterable, key=cmp_to_key(locale.strcoll)) # locale-aware sort order
(Ref.: http://docs.python.org/3.3/library/functools.html)