Fix user list sort order

This commit is contained in:
rubenwardy 2018-05-23 20:59:59 +01:00
parent 8d1f4e47fc
commit 6e2f2e3d04
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C

@ -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)