Skip to content

Commit

Permalink
Sort topics alphabetically.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed May 13, 2016
1 parent 0f7bf0a commit 0f50a3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions talks/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ def list_topics(request):
if api_topic not in topics_results:
topics_results.append(api_topic)

topics_results.sort(key=lambda topic:topic['prefLabel'])

context = {
'topics': topics_results,
}
Expand Down

0 comments on commit 0f50a3d

Please sign in to comment.