ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] Repost: sequence.sort: how can I sort strings?
by other posts by this author
Apr 3 2002 9:59AM messages near this date
Re: [Zope] unix security patch | [Zope] Zope 1, Lotus Notes 0, M$ .5
Thanks Oleg,

since I am just strolling the archives at the moment
and temporarily stopped subscription to the list, I
didn't get your reply (probably you didn't cc me).

Thanks again,
Danny


Oleg Broytmann wrote

>  
>  On Wed, Apr 03, 2002 at 03:23:35PM +1200, Danny Adair
wrote:
>  > (haven't figured it out yet, only workarounds...)
>  > 
>  > How can I sort a sequence of STRINGS using
sequence.sort?
>  > I don't know what to use as a "key"...
>  > 
>  > (I tried self, str, value, '', _.None, ....... :-))
>  > 
>  > Or in other words: What's the attribute of a string
that returns the string
>  > itself?
>  
>     Danny, you already asked the question few weeks
ago, and I answered -
>  there is no such key. Don't use sequence.sort(), just
put your strings into
>  a list (let us call it "alist") and call alist.sort().
>  
>  Oleg.
>  -- 
>       Oleg Broytmann            http://phd.pp.ru/     
      phd@[...].ru
>             Programmers don't die, they just GOSUB
without RETURN.



_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved