diff --git a/server.py b/server.py index e8fec94e7826d651e1faedda17dfd366d294651f..52c8ef156068c515b584e68e5e3f9c547eebe1a3 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)