#319 sort participants by there last_name by default

This commit is contained in:
Oskar Hahn 2012-07-20 11:34:37 +02:00
parent e1a2f18f74
commit 8854f7f9ba

View File

@ -94,7 +94,7 @@ def get_overview(request):
elif sortfilter['sort'][0] in ['group', 'type', 'committee', 'comment']:
query = query.order_by('profile__%s' % sortfilter['sort'][0])
else:
query = query.order_by('first_name')
query = query.order_by('last_name')
if 'reverse' in sortfilter:
query = query.reverse()