sort accented string
Laurent
laurentpointrahuel at clubtiretinternet.fr
Wed Jun 30 09:12:27 EDT 2004
Hello,
I'm french and I have a small sorting problem with python (and zope's
zcatalog):
In a python shell python, try :
'é' > 'z'
The answer is true. Then if you try
test=['a','b','f','é','z']
print test.sort()
You almost get :
['a','b','f','z','é']
That's not what we want :-)
Any help will be greatly appriciated.
PS : I got the same behaviour with zope's zcatalog during a sort_on request.
Even if I start zope with the correct linux locale (fr_FR).
THX
Laurent.
More information about the Python-list
mailing list