[Zope-dev] case insensitive sorts

Phil Harris phil.harris@zope.co.uk
Wed, 3 Jan 2001 11:27:23 -0000


See below (nothing earth shattering tho) ;)

----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Shane Hathaway" <shane@digicool.com>
Cc: <zope-dev@zope.org>
Sent: Wednesday, January 03, 2001 10:58 AM
Subject: Re: [Zope-dev] case insensitive sorts


> 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

That's only because you use NT (ach spit). ;)

>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )