Fix #2174 (default sorting order now is timestamp again)

This commit is contained in:
Ozzie Isaacs 2021-11-20 11:57:51 +01:00
parent 01cc97c1b2
commit d624b67e93

View file

@ -339,7 +339,7 @@ def get_matching_tags():
def get_sort_function(sort, data):
order = [db.Books.sort]
order = [db.Books.timestamp.desc()]
if sort == 'stored':
sort = current_user.get_view_property(data, 'stored')
else:
@ -369,7 +369,7 @@ def get_sort_function(sort, data):
if sort == 'hotasc':
order = [func.count(ub.Downloads.book_id).asc()]
if sort is None:
sort = "abc"
sort = "new"
return order, sort