Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-28 17:13:41 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-28 17:13:41 +0300
commit7c85f8dea4fc79f6b98edd146844b5573f22ac25 (patch)
treec338cf0d16473a2e393dc37a35d8cd3d3ab6668a /lib
parent8342964db09021596960a3887568172703a516dc (diff)
Make the order of reactions reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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();