sort docs by date

This commit is contained in:
Frédéric Péters 2011-11-16 14:11:02 +01:00
parent 7980cd5aaf
commit b4dad19e49
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ class SimpleSearchView(BrowserView):
portal_type=['tabellio.documents.dossier',
'tabellio.documents.document',
'tabellio.documents.question'],
SearchableText=self.request.form.get('SearchableText'))
SearchableText=self.request.form.get('SearchableText'),
sort_on='dateDoc', sort_order='descending')
def event_results(self):
catalog = getToolByName(self.context, 'portal_catalog')