[Zope] Re: ZCatalog secondary sort
kyler@lairds.com
kyler@lairds.com
Mon, 8 Apr 2002 12:54:24 -0500
On Mon, Apr 08, 2002 at 11:50:51AM -0500, brian.r.brinegar.1 wrote:
> results = catalog.searchResults(sort_on=['priority','event_date'])
>
> but sort on cannot be a list. Is there a way to do this, or do I need to
> sort the results on my own?
Some code in Catalog.py leads me to think this
might be possible.
for k, intset in sort_index.items():
if hasattr(intset, 'keys'): intset=intset.keys()
append((k,LazyMap(self.__getitem__, intset)))
However, as of the end of 2001, we're told no one
was working on it.
http://lists.zope.org/pipermail/zope/2001-December/105254.html
Then...there was a patch to do it.
http://dev.zope.org/Members/rossl/MultikeyInSorts
But it says that Zope 2.2.x handles it.
So...I'm guessing you can now do it, but I don't
see exactly how. I'll bang on it some more...
--kyler