H, * David MENTRE <[email protected]> [2010-02-10 20:02:42]:
> 2010/2/10 David MENTRE <[email protected]>: > > I'll look at it. No guarantee though. > > Ok, I could not found any specific Python function to do the correct > compare. Maybe I have overlooked something, let me know. After a bit of research, it looks like Python can't correctly compare unicode strings because it does order-based comparison instead of using a UCA (Unicode Collation Algorithm, http://unicode.org/reports/tr10/). There doesn't seem to be an easy-to-use, packaged Python UCA, and Django doesn't seem to be of any help here either. > A simple solution would probably to go back to the old list and sort > it manually. I think it's good enough for now. Especially since the ordering is actually language-dependant, we won't be able to provide a correctly sorted list anyways. - Maxime -- Maxime Petazzoni <http://www.bulix.org> ``One by one, the penguins took away my sanity.'' Linux kernel and software developer at MontaVista Software
signature.asc
Description: Digital signature
