sort accented string
From: Laurent (laurentpointrahuel_at_clubtiretinternet.fr)
Date: 06/30/04
- Previous message: John Hunter: "Re: creating graphs from lists"
- Next in thread: Peter Otten: "Re: sort accented string"
- Reply: Peter Otten: "Re: sort accented string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 15:12:27 +0200
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.
- Previous message: John Hunter: "Re: creating graphs from lists"
- Next in thread: Peter Otten: "Re: sort accented string"
- Reply: Peter Otten: "Re: sort accented string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]