[Zope-Annce] Generic Sort External Method

Oleg Broytmann Oleg Broytmann <phd@phd.fep.ru>
Fri, 6 Apr 2001 13:55:23 +0400 (MSD)


Hello!

   On http://www.zope.org/Members/phd/Sort/ there is the generic Sort
External Method that helps programmers to sort their sequences according to
their needs. It can sort by a key, by multiple key, in ascending/descending
order (different order for any key possible), by locale rules, ignoring
case and, best of all, it allows developer to write his/her own comparison
function for a key.

   Example: Sort(sequence, "akey/nocase,anotherkey/cmp/desc")

This, of course, is a variant of my patch for dtml-in
(http://classic.zope.org:8080/Collector/2120/view). I am not going to drop
one of them in favor of the other - both have its niches.

   There is a command-line test suite and a Zope test folder.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.