diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-06-02 19:44:57 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-06-02 19:44:57 +0100 |
commit | 8e134a7c858f1d2240ae785130cdb3e1ba0650a6 (patch) | |
tree | e2cecb29a3405d95adbb31c259e341b382eabf80 /app/views/users.py | |
parent | 389258a10c4c198443618461da80f00eddd3aae3 (diff) | |
download | cheatdb-8e134a7c858f1d2240ae785130cdb3e1ba0650a6.tar.xz |
Fix todo topics sort order
Diffstat (limited to 'app/views/users.py')
-rw-r--r-- | app/views/users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users.py b/app/views/users.py index 51efd1d..6dc1405 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -101,7 +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)) \ + .order_by(db.asc(KrockForumTopic.name), db.asc(KrockForumTopic.title)) \ .all() # Process GET or invalid POST |