mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
sort users according to display name
This commit is contained in:
parent
64551ee06f
commit
60d4fdda57
2 changed files with 3 additions and 3 deletions
|
|
@ -530,7 +530,7 @@ class OC_User {
|
|||
$displayNames = array_merge($displayNames, $backendDisplayNames);
|
||||
}
|
||||
}
|
||||
ksort($displayNames);
|
||||
asort($displayNames);
|
||||
return $displayNames;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@ var UserList = {
|
|||
}
|
||||
var added = false;
|
||||
if (sort) {
|
||||
username = username.toLowerCase();
|
||||
displayname = displayname.toLowerCase();
|
||||
$('tbody tr').each(function () {
|
||||
if (username < $(this).attr('data-uid').toLowerCase()) {
|
||||
if (displayname < $(this).attr('data-uid').toLowerCase()) {
|
||||
$(tr).insertBefore($(this));
|
||||
added = true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue