summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}