Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Revert "[stable24] Make the order of reactions reliable""
  • Loading branch information
blizzz authored May 2, 2022
commit f44f022483a5fd60550f555e1eeeab7a0a086d15
1 change: 1 addition & 0 deletions lib/private/Comments/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,7 @@ private function sumReactions(string $parentId): void {
->where($totalQuery->expr()->eq('r.parent_id', $qb->createNamedParameter($parentId)))
->groupBy('r.reaction')
->orderBy('total', 'DESC')
->addOrderBy('r.reaction', 'ASC')
->setMaxResults(20);

$jsonQuery = $this->dbConn->getQueryBuilder();
Expand Down