mirror of
https://github.com/nextcloud/server.git
synced 2024-08-10 14:11:53 +02:00
sort users according to display name
This commit is contained in:
parent
64551ee06f
commit
60d4fdda57
@ -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 New Issue
Block a user