Chris Withers wrote at 2003-5-14 10:46 +0100:
Dieter Maurer wrote:
Some time ago, I posted a code snipped that provides sorting code for ZCatalog directly (--> archives). Maybe, this code will be integrated in Zope 2.7.
Have you got a direct link?
No. I would need to search (in the same way you would ;-) ). Search for "sortSpecs". Wait a bit: I think, I optimized the function a bit in the meantime. I attach it again.
I'd be verymuch up for integrating this if you don't mind helping out if I get stuck...
I posted it precisely because you wrote you were interested. I case of problems I would try to help: While I wrote integration would not be trivial this has not been meant for you :-) The most difficult part is to design a good API. The posted code has one but it is incompatible with the current "searchResults" API. Once the API is settled, the posted function could be used almost directly (with an API adapter as intermediary). Dieter