Skip to content
Snippets Groups Projects
Commit 87af51e4 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Ignore case when sorting todomails

/close #21
parent 59cbe00a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment