[Zope-dev] case insensitive sorts

Chris Withers chrisw@nipltd.com
Wed, 03 Jan 2001 10:58:42 +0000


Shane Hathaway wrote:
> 
> Python's sort() lets you sort based on not only strings but also tuples,
> lists, and numbers, which is a very useful feature.  Thus sort() is
> intended to be a highly generalized method.  It is useful but not ideal
> for sorting text strings.  What you *really* want is a second method,
> perhaps in a new module (called "textops" or something similar) that
> would also include multilingual text splitters and other utilities for
> working with human-readable text.

I agree that's a good idea, but all I'm talking about is the simple case
of sorting strings, in which python's current implementation isn't very
helpful and I don't see any situation where sorting:

Andrew
David
Wayne
bart
sophie

is better than sorting:

Andrew
bart
David
sophie
Wayne

cheers,

Chris