diff --git a/src/core/server/models/comment.ts b/src/core/server/models/comment.ts index e2ff8da1d..39d8ccc5c 100644 --- a/src/core/server/models/comment.ts +++ b/src/core/server/models/comment.ts @@ -366,7 +366,7 @@ function applyInputToQuery(input: ConnectionInput, query: Query) { } break; case GQLCOMMENT_SORT.RESPECT_DESC: - query.orderBy({ "action_counts.respect": -1, created_at: -1 }); + query.orderBy({ "action_counts.REACTION": -1, created_at: -1 }); if (input.after) { query.after(input.after as number); }