Fix user list order

This commit is contained in:
rubenwardy 2018-05-23 20:38:27 +01:00
parent 715d499f8a
commit 7b4b9a0562
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.asc(User.display_name)).all()
users = User.query.order_by(db.asc(User.rank), db.desc(User.display_name)).all()
return render_template("users/list.html", users=users)