aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-28 16:13:41 +0200
committerJoas Schilling <coding@schilljs.com>2022-04-28 16:13:41 +0200
commit7c85f8dea4fc79f6b98edd146844b5573f22ac25 (patch)
treec338cf0d16473a2e393dc37a35d8cd3d3ab6668a /lib/private/Comments
parent8342964db09021596960a3887568172703a516dc (diff)
downloadnextcloud-server-7c85f8dea4fc79f6b98edd146844b5573f22ac25.tar.gz
nextcloud-server-7c85f8dea4fc79f6b98edd146844b5573f22ac25.zip
Make the order of reactions reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 123e4f6988d..abbe4c66c95 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -1269,6 +1269,7 @@ class Manager implements ICommentsManager {
->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();