diff options
author | Olivier Lamy <olamy@apache.org> | 2014-05-06 16:12:14 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-05-06 16:12:14 +1000 |
commit | 8e8148886bbcda08cfa7f607a2468d18ad201e2e (patch) | |
tree | 237542966066c974e45a4693af6e69f3ab287a89 /archiva-modules/archiva-web/archiva-webapp/src | |
parent | d533b85919012fe3759861a9a7a6578d141e4bf6 (diff) | |
download | archiva-8e8148886bbcda08cfa7f607a2468d18ad201e2e.tar.gz archiva-8e8148886bbcda08cfa7f607a2468d18ad201e2e.zip |
[MRM-1809] Users - Manage section sort by name doesn't work as expected
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js index 0a3f19ead..827a20653 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js @@ -131,21 +131,21 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,typeahead) { lock = function(user){ clearUserMessages(); user.lock(); - } + }; unlock = function(user){ clearUserMessages(); user.unlock(); - } + }; passwordChangeRequire = function(user,forceChangedPassword){ clearUserMessages(); user.changePasswordChangeRequired(forceChangedPassword); - } + }; this.sortByName = function() { this.users.sort(function(a, b) { - return a.username < b.username ? -1 : 1; + return a.username().localeCompare(b.username()); }); }; |