From 3657316fa23e85b82b4259b2f993e020309c7f24 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 2 Jun 2018 19:41:13 +0100 Subject: Clean up todo topics related HTML --- app/views/packages/todo.py | 1 + app/views/users.py | 1 + 2 files changed, 2 insertions(+) (limited to 'app/views') diff --git a/app/views/packages/todo.py b/app/views/packages/todo.py index 9553ef2..d4526ee 100644 --- a/app/views/packages/todo.py +++ b/app/views/packages/todo.py @@ -58,6 +58,7 @@ def todo_topics_page(): topics = KrockForumTopic.query \ .filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \ + .order_by(db.asc(KrockForumTopic.title)) \ .all() return render_template("todo/topics.html", topics=topics, total=total) diff --git a/app/views/users.py b/app/views/users.py index 86219f9..51efd1d 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -101,6 +101,7 @@ def user_profile_page(username): topics_to_add = KrockForumTopic.query \ .filter_by(author_id=user.id) \ .filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \ + .order_by(db.asc(KrockForumTopic.title)) \ .all() # Process GET or invalid POST -- cgit v1.2.3