[Zope] multi-column sort with ZCatalog

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Tue, 13 May 2003 14:27:33 +0200


--On Dienstag, 13. Mai 2003 8:23 Uhr -0400 Mark Nenadov 
<mark@freelance-developer.com> wrote:

> Hello all,
>
> I have a simple ZCatalog query with a sort_on and sort_order being
> passed to it.
>
> Is there any way I can do the sort on multiple columns? This seems like
> an important feature. I've heard that is not possible, but I'm wondering
> if I am just missing something/getting wrong info.
>
> I'm already looking into the Generic Sort External Method, but I'm
> wondering if there is some other way to do this?
>
you can use sequence.sort() to perform multi-column sorting on the 
resultset.

-aj