Make sure the results are always sorted the same

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/11871/head
Joas Schilling 2019-02-11 13:10:33 +07:00 committed by Julius Härtl
parent a8a5472401
commit c8c59e6006
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 0 deletions

@ -132,6 +132,7 @@ class Manager implements IManager {
)
->where($query->expr()->iLike('c.name', $query->createNamedParameter($filter, IQueryBuilder::PARAM_STR)))
->andWhere($query->expr()->neq('a.access', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)))
->orderBy('c.id')
->setMaxResults($limit)
->setFirstResult($start);
$result = $query->execute();