Ignore case when sorting users
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
f0fdac8078
commit
0bfe3da664
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue