From 69bf4ccf80782895dcd40740871335f4b78130e0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 5 Sep 2023 21:31:55 +0300 Subject: [PATCH] fix /!commenters ordering --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 4b0bc5fdd..2d6591b81 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -739,7 +739,7 @@ def commenters(v, pid, time): Comment.parent_post == pid, Comment.created_utc < time-1, User.id.notin_(BOT_IDs), - ).all() + ).order_by(User.id, Comment.created_utc).all() users = sorted(users, key=lambda x: x[1])