sort deputies by name

This commit is contained in:
Frédéric Péters 2011-11-15 16:39:38 +01:00
parent febb170c84
commit a325f8877c
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ class SearchForm(form.Form):
return []
return catalog(
portal_type=['themis.datatypes.deputy'],
SearchableText=data.get('SearchableText'))
SearchableText=data.get('SearchableText'),
sort_on="sortable_title", sort_order='ascending', sort_limit=20)
def page_results(self):
catalog = getToolByName(self.context, 'portal_catalog')