Commit 87af51e4 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Ignore case when sorting todomails

/close #21
parent 59cbe00a
......@@ -1149,7 +1149,7 @@ def delete_error(error):
@app.route("/todomails/list")
@login_required
def list_todomails():
todomails = sorted(TodoMail.query.all(), key=lambda tm: tm.name)
todomails = sorted(TodoMail.query.all(), key=lambda tm: tm.name.lower())
todomails_table = TodoMailsTable(todomails)
return render_template("todomails-list.html", todomails=todomails, todomails_table=todomails_table)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment