Skip to content

Commit

Permalink
* Fix a bug where the users were not being sorted correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Sep 26, 2018
1 parent d1ea15b commit 9008021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_kala/auth/views/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def get_context_data(self, **kwargs):

sort_order = self.request.GET.get('sort', None)
if sort_order:
if sort_order == 'Alphabetically':
users = users.order_by('name')
if sort_order == 'alphabetically':
users = users.order_by('first_name')
else:
users = users.order_by('organizations__name')

Expand Down

0 comments on commit 9008021

Please sign in to comment.