summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-27 02:39:22 -0800
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-27 02:39:22 -0800
commita54be4acc482465253d84fe35d2d666b32da02d1 (patch)
tree82d8dfa97696bb47b378a9d1753f5fd026b82bc8 /settings
parent58b06c5c9a8b49b1db9c696b2f46595f229bb729 (diff)
parent60d4fdda5780ea115ae4d051165256ce7de69783 (diff)
downloadnextcloud-server-a54be4acc482465253d84fe35d2d666b32da02d1.tar.gz
nextcloud-server-a54be4acc482465253d84fe35d2d666b32da02d1.zip
Merge pull request #1948 from owncloud/improve_user_sorting
Sort after display name + LDAP server side sorting
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 452bdf5f838..2c27c6d7666 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -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;