aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-05-06 16:12:14 +1000
committerOlivier Lamy <olamy@apache.org>2014-05-06 16:12:14 +1000
commit8e8148886bbcda08cfa7f607a2468d18ad201e2e (patch)
tree237542966066c974e45a4693af6e69f3ab287a89 /archiva-modules/archiva-web/archiva-webapp/src
parentd533b85919012fe3759861a9a7a6578d141e4bf6 (diff)
downloadarchiva-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.js8
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());
});
};