[Zope] Sorting mod.time with dtml-in?

Casey Duncan cduncan@kaivo.com
Mon, 07 May 2001 08:53:57 -0600


Dieter Maurer wrote:
> 
> Chris Withers writes:
>  > > The value of the "sort" attribute is a comma separated
>  > > sequence of field names.
>  >
>  > Is the same true for ZCatalog?
> I do not think so.
> 
>  > If not, can this be used to have the same effect on ZCatalog search results or
>  > would the benefits of the lazy results set in a batched search be lost?
> Of course, you can use "in"'s sort attribute to sort a ZCatalog
> result sequence. And surely, you need to fetch the sequence
> elements to sort them.
> 
> Dieter
> 

You can pass the sort-on or sort_on argument to a ZCatalog to do lazy
sorting at query time. You can only sort on indexes however.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>