fix sorting on session

This commit is contained in:
Frédéric Péters 2011-11-20 12:10:34 +01:00
parent 0e480c0526
commit 389a2e4f3d
1 changed files with 3 additions and 0 deletions

View File

@ -542,6 +542,9 @@ class SearchView(BrowserView):
elif data.get('sort_on') == 'Number':
kw['sort_on'] = 'no'
kw['sort_order'] = 'ascending'
elif data.get('sort_on') == 'Session':
kw['sort_on'] = 'session'
kw['sort_order'] = 'descending'
if not kw and not data.get('text'):
return []