Skip to content

Commit

Permalink
[view] Descending order for collections
Browse files Browse the repository at this point in the history
  • Loading branch information
msimacek committed Apr 7, 2016
1 parent df164b5 commit 23336f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koschei/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def inject_fedmenu():
def get_collections():
collection_name = request.args.get('collection')
g.collections = db.query(Collection)\
.order_by(Collection.order, Collection.name)\
.order_by(Collection.order, Collection.name.desc())\
.all()
if not g.collections:
abort(500, "No collections setup")
Expand Down

0 comments on commit 23336f9

Please sign in to comment.