From 41bc0784885e558c6244877acae562b4aee7b723 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 17 Oct 2023 18:46:50 +0200 Subject: [PATCH] then --- crates/db_views/src/comment_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 97ddf51c0..98536fb8f 100644 --- a/crates/db_views/src/comment_view.rs +++ b/crates/db_views/src/comment_view.rs @@ -255,7 +255,7 @@ fn queries<'a>() -> Queries< // distinguished comments should go first when viewing post if options.post_id.is_some() || options.parent_path.is_some() { - query = query.order_by(comment::distinguished.desc()); + query = query.then_order_by(comment::distinguished.desc()); } query = match options.sort.unwrap_or(CommentSortType::Hot) {