fix: sort by replies (#2351)

This commit is contained in:
Wyatt Johnson
2019-06-08 02:10:26 +02:00
committed by Vinh
parent 812649153e
commit d30ced8142
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -728,7 +728,7 @@ function applyInputToQuery(
}
break;
case GQLCOMMENT_SORT.REPLIES_DESC:
query.orderBy({ replyCount: -1, createdAt: -1 });
query.orderBy({ childCount: -1, createdAt: -1 });
if (input.after) {
query.after(input.after as number);
}