[Zope] Finding Newest Document

Chris Withers chrisw@nipltd.com
Fri, 20 Jul 2001 23:48:27 +0100


Hi,

I have a shedload of File objects all with a dateofpublication property.
They are all catalogued an dateofpublication is a FieldIndex.

I wonder what the most efficient way to get the article with the newest date of
publication is?

I had assumed a catalog search as follows would be best:
article = Catalog(sort_on='dateofpublication')[0]

Can anyone think of a better way?

cheers,

Chris