mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Make the order of reactions reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8342964db0
commit
7c85f8dea4
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue