sort users according to display name

This commit is contained in:
Arthur Schiwon 2013-02-26 22:56:55 +01:00
parent 64551ee06f
commit 60d4fdda57
2 changed files with 3 additions and 3 deletions

View File

@ -530,7 +530,7 @@ class OC_User {
$displayNames = array_merge($displayNames, $backendDisplayNames);
}
}
ksort($displayNames);
asort($displayNames);
return $displayNames;
}

View File

@ -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;