Skip to content

Commit

Permalink
Sort Organizations by Name
Browse files Browse the repository at this point in the history
Closes #2190
  • Loading branch information
jazyz authored and Xyene committed Jul 12, 2023
1 parent 3f5212f commit 64a1eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class OrganizationList(TitleMixin, ListView):
title = gettext_lazy('Organizations')

def get_queryset(self):
return super(OrganizationList, self).get_queryset().annotate(member_count=Count('member'))
return super(OrganizationList, self).get_queryset().annotate(member_count=Count('member')).order_by('name')


class OrganizationHome(OrganizationDetailView):
Expand Down

0 comments on commit 64a1eca

Please sign in to comment.