Skip to content
Snippets Groups Projects
Commit 60d4fdda authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

sort users according to display name

parent 64551ee0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment