From b98c218201b3db952d3ecceed5271000aaf27859 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 27 Mar 2018 14:50:09 +0200 Subject: Remove orderBy so the query works correctly on postgres Signed-off-by: Joas Schilling --- lib/private/Group/Database.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php index b9b2428e01b..abd7f6ee6ee 100644 --- a/lib/private/Group/Database.php +++ b/lib/private/Group/Database.php @@ -341,8 +341,7 @@ class Database extends Backend { $query = $this->dbConn->getQueryBuilder(); $query->selectAlias($query->createFunction('COUNT(*)'), 'num_users') ->from('group_user') - ->where($query->expr()->eq('gid', $query->createNamedParameter($gid))) - ->orderBy('uid', 'ASC'); + ->where($query->expr()->eq('gid', $query->createNamedParameter($gid))); if ($search !== '') { $query->andWhere($query->expr()->like('uid', $query->createNamedParameter( -- cgit v1.2.3