Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-11 15:10:33 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-01 22:56:19 +0300
commitc8c59e600618bb2dffbe5a579984ec81bd69744c (patch)
tree26b96e4cd0d4fcf44456b3213b5bfd7c7f5e0e0b /lib
parenta8a547240124c8b64e2f4cc0c4b4f5cd3aed41c5 (diff)
Make sure the results are always sorted the same
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php1
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();