diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-23 20:59:59 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-23 20:59:59 +0100 |
commit | 6e2f2e3d0467ef96b3cfc2a28fa53699d8fcf605 (patch) | |
tree | bd59ca8d6ba628ac37522607e8dad1c0d99aa72d /app/views/users.py | |
parent | 8d1f4e47fcb34389adbd9dbbde3f0d57a9c9e2af (diff) | |
download | cheatdb-6e2f2e3d0467ef96b3cfc2a28fa53699d8fcf605.tar.xz |
Fix user list sort order
Diffstat (limited to 'app/views/users.py')
-rw-r--r-- | app/views/users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users.py b/app/views/users.py index 6503487..bdf9372 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) |