diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-28 16:13:41 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-28 16:13:41 +0200 |
commit | 7c85f8dea4fc79f6b98edd146844b5573f22ac25 (patch) | |
tree | c338cf0d16473a2e393dc37a35d8cd3d3ab6668a /lib/private/Comments | |
parent | 8342964db09021596960a3887568172703a516dc (diff) | |
download | nextcloud-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.php | 1 |
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(); |