Commit 89bd0d37 authored by Vidjil Team's avatar Vidjil Team
Browse files

patient.py: descending sort patient list on patient id

parent 7e846351
......@@ -299,7 +299,9 @@ def index():
result = sorted(result, key = lambda row : row['file_count'], reverse=reverse)
elif "sort" in request.vars:
result = sorted(result, key = lambda row : row[request.vars["sort"]], reverse=reverse)
else:
result = sorted(result, key = lambda row : row['id'], reverse=not reverse)
##filter
if "filter" not in request.vars :
request.vars["filter"] = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment