diff --git a/server.py b/server.py index 08dcecd64e7469fc1925cc2699f06f43bd3ed833..bb0d33cb90a41dee3a9c68f33c852bd6af7d615e 100755 --- a/server.py +++ b/server.py @@ -1109,7 +1109,7 @@ def delete_error(error_id): @app.route("/todomails/list") @login_required def list_todomails(): - todomails = TodoMail.query.all() + todomails = sorted(TodoMail.query.all(), key=lambda tm: tm.name) todomails_table = TodoMailsTable(todomails) return render_template("todomails-list.html", todomails=todomails, todomails_table=todomails_table)