[Zope-dev] case insensitive sorts

Dieter Maurer dieter@handshake.de
Thu, 4 Jan 2001 19:42:16 +0100 (CET)


Chris Withers writes:
 > Dieter Maurer wrote:
 > > 
 > > Chris Withers writes:
 > >  > Andrew
 > >  > bart
 > >  > David
 > >  > sophie
 > >  > Wayne
 > > Why in hell do you switch caseness for similar objects?
 > 
 > Who said anything about objects?
Maybe, I should have said subjects.

Your example strings seem to name persons.
It is very strange (and should be punished, as it is by
Python's default sort ;-)) to use caseness inconsistently
for these same type subjects/objects/entities (whatever you like).

I am not against an option to specify what comparison function should
be used for sorting (when I would implement it, I would probably
follow Python's sort interface and provide an optional function
rather than have a collection of attributes specifying
the sort order).

However, I am against a change of the sort order
in the *management interface* (unless I can easily switch back).
The reason: I make sensible use of the ASCII based sort
order and would not like to loose it.



Dieter