Make sure the results are always sorted the same

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/11871/head
Joas Schilling 7 years ago committed by Julius Härtl
parent a8a5472401
commit c8c59e6006
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 1
      lib/private/Collaboration/Resources/Manager.php

@ -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();

Loading…
Cancel
Save