Skip to content

Commit

Permalink
Merge pull request #465 from freedomofpress/alphabetize-directory
Browse files Browse the repository at this point in the history
Alphabetize directory
  • Loading branch information
conorsch authored Apr 25, 2018
2 parents ef9e80a + 6be11d9 commit 11f8ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion directory/models/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def get_instances(self, filters=None):
consistently filtered by visibility and `filters` parameter
"""
instances = DirectoryEntry.objects.child_of(self).live()
instances = DirectoryEntry.objects.child_of(self).live()\
.order_by('title')
if filters:
instances = instances.filter(**filters)
return instances
Expand Down

0 comments on commit 11f8ee2

Please sign in to comment.