Skip to content

Commit

Permalink
Sort files by their original names (fix #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roey Darwish Dror committed Mar 22, 2016
1 parent 596b0b2 commit 7ba743b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_app/blueprints/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_all():
if "filter" in request.args and request.args["filter"]:
query = query.filter(File.file_name.like("%{}%".format(request.args['filter'])))

query = query.order_by(File.storage_name)
query = query.order_by(File.file_name)

total = query.count()

Expand Down

0 comments on commit 7ba743b

Please sign in to comment.