[Zope] Re: ZCatalog secondary sort

kyler@lairds.com kyler@lairds.com
Mon, 8 Apr 2002 14:12:55 -0500


On Mon, Apr 08, 2002 at 11:50:51AM -0500, brian.r.brinegar.1 wrote:
> 
> I have a ZCatalog and I would like to search it and sort the results first
> on a Priority value and then sort all results with the same priority on a
> date. I would like to be able to do something like this:
> 
> results = catalog.searchResults(sort_on=['priority','event_date'])
> 
> but sort on cannot be a list.

I researched this a bit and had a length response with
lots of references...then my laptop blew the GFCI here
and...oh, I'm frustrated.

Anyway...there was a patch to do this, but it's
supposedly no longer needed.  I poked around Catalog.py
and found something that indicates to me that multiple
sort keys can be used.

I don't have an example yet, but I'll keep on it.

--kyler