Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Sort all_contributors alphabetically by name
Browse files Browse the repository at this point in the history
- add an order_by('name') clause to the queryset in all_contributors to
sort the results so they'll display alphabetically by name in the client

Connects #209
  • Loading branch information
Kelly Innes committed Mar 1, 2019
1 parent 542a3d4 commit f149c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def all_contributors(request):
response_data = [
(organization.id, organization.name)
for organization
in Organization.objects.all()
in Organization.objects.all().order_by('name')
]
return Response(response_data)

Expand Down

0 comments on commit f149c46

Please sign in to comment.