diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-11 15:10:33 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 22:56:19 +0300 |
commit | c8c59e600618bb2dffbe5a579984ec81bd69744c (patch) | |
tree | 26b96e4cd0d4fcf44456b3213b5bfd7c7f5e0e0b /lib/private | |
parent | a8a547240124c8b64e2f4cc0c4b4f5cd3aed41c5 (diff) |
Make sure the results are always sorted the same
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Collaboration/Resources/Manager.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index d26c6b5d141..7f0e6b3779e 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/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(); |