From 6e2f2e3d0467ef96b3cfc2a28fa53699d8fcf605 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 23 May 2018 20:59:59 +0100 Subject: [PATCH] Fix user list sort order --- app/views/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users.py b/app/views/users.py index 6503487f..bdf9372b 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -39,7 +39,7 @@ class UserProfileForm(FlaskForm): @app.route("/users/", methods=["GET"]) @login_required def user_list_page(): - users = User.query.order_by(db.asc(User.rank), db.desc(User.display_name)).all() + users = User.query.order_by(db.desc(User.rank), db.asc(User.display_name)).all() return render_template("users/list.html", users=users)