diff --git a/files/routes/posts.py b/files/routes/posts.py index a70c92483..d423a72db 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -213,6 +213,7 @@ def post_id(pid, anything=None, v=None, sub=None): pinned2.add(pin) pinned = list(pinned2) + pinned.sort(key=lambda x: x.created_utc, reverse=True) post.replies = pinned + comments post.views += 1