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
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-04-28 20:37:58 +0300
committerGitHub <noreply@github.com>2022-04-28 20:37:58 +0300
commit42b98d01bd9b778fe217cc9fb2c0dedf2996604b (patch)
tree9e0c9186cbbeb2b74d86635e0e1c5864a1db7dcc
parent350d0261eaa2c78832d6666bd154de1cbf35fe8a (diff)
parent7c85f8dea4fc79f6b98edd146844b5573f22ac25 (diff)
Merge pull request #32212 from nextcloud/bugfix/noid/make-the-order-of-reactions-reliable
Make the order of reactions reliable
-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();