summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-05-28 15:52:37 +0200
committerGitHub <noreply@github.com>2018-05-28 15:52:37 +0200
commit9ddff6ff35d64955ba8a0fe711786b1ed986efcc (patch)
treeeb8fc48c1edc1e930b190da977760721b1776145 /lib
parentb76f806857148c6c81fdc2b324d22860e272d7e5 (diff)
parentad6e548411f3fac33deee0efc0035838b783edb4 (diff)
downloadnextcloud-server-9ddff6ff35d64955ba8a0fe711786b1ed986efcc.tar.gz
nextcloud-server-9ddff6ff35d64955ba8a0fe711786b1ed986efcc.zip
Merge pull request #9617 from nextcloud/users-sort-case-fix
Ignore case when sorting users
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php
index 6784359538d..494a345be59 100644
--- a/lib/private/User/Manager.php
+++ b/lib/private/User/Manager.php
@@ -239,7 +239,7 @@ class Manager extends PublicEmitter implements IUserManager {
* @var \OC\User\User $a
* @var \OC\User\User $b
*/
- return strcmp($a->getUID(), $b->getUID());
+ return strcasecmp($a->getUID(), $b->getUID());
});
return $users;
}
@@ -268,7 +268,7 @@ class Manager extends PublicEmitter implements IUserManager {
* @var \OC\User\User $a
* @var \OC\User\User $b
*/
- return strcmp(strtolower($a->getDisplayName()), strtolower($b->getDisplayName()));
+ return strcasecmp($a->getDisplayName(), $b->getDisplayName());
});
return $users;
}