[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_search.py:1.4
Ken Manheimer
klm@zope.com
Thu, 18 Oct 2001 14:49:25 -0400
Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv27067
Modified Files:
collector_search.py
Log Message:
Sort by 'created' date, not id. (Lexicographic sorting of
stringified-number id is *not* the sorting people need!-)
=== CMF/CMFCollector/skins/collector/collector_search.py 1.3 => 1.4 ===
query = {}
-query['sort_on'] = 'id'
+query['sort_on'] = 'created'
query['Type'] = "Collector Issue"
query['path'] = context.absolute_url(1)
@@ -49,6 +49,4 @@
if rs:
query['review_state'] = rs
-return context.portal_catalog(REQUEST=query)
-
-# Use "sort_on='index_name'" to sort - default, id
+return context.portal_catalog(REQUEST=query)]