diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-26 12:01:13 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-26 12:01:13 +0200 |
commit | 0bfe3da6643f6add02af0e1c355e2aeae9cece42 (patch) | |
tree | b4462038c52eaadcd73c2adbe79e7ef81176db22 | |
parent | f0fdac807851823cb7aa29fcedfdd7de8b2733d8 (diff) | |
download | nextcloud-server-0bfe3da6643f6add02af0e1c355e2aeae9cece42.tar.gz nextcloud-server-0bfe3da6643f6add02af0e1c355e2aeae9cece42.zip |
Ignore case when sorting users
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | lib/private/User/Manager.php | 4 |
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; } |