diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-28 19:37:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 19:37:58 +0200 |
commit | 42b98d01bd9b778fe217cc9fb2c0dedf2996604b (patch) | |
tree | 9e0c9186cbbeb2b74d86635e0e1c5864a1db7dcc | |
parent | 350d0261eaa2c78832d6666bd154de1cbf35fe8a (diff) | |
parent | 7c85f8dea4fc79f6b98edd146844b5573f22ac25 (diff) | |
download | nextcloud-server-42b98d01bd9b778fe217cc9fb2c0dedf2996604b.tar.gz nextcloud-server-42b98d01bd9b778fe217cc9fb2c0dedf2996604b.zip |
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.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(); |