From c8c59e600618bb2dffbe5a579984ec81bd69744c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 11 Feb 2019 13:10:33 +0100 Subject: [PATCH] Make sure the results are always sorted the same Signed-off-by: Joas Schilling --- lib/private/Collaboration/Resources/Manager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index d26c6b5d14..7f0e6b3779 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();