From: Olivier Lamy Date: Wed, 27 Nov 2013 03:42:26 +0000 (+0000) Subject: [MRM-1765] #users > edit -- please sort effective roles X-Git-Tag: archiva-2.0.0-RC1~187 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da985f825460409f0f6f43ab7384151ce8367766;p=archiva.git [MRM-1765] #users > edit -- please sort effective roles git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1545919 13f79535-47bb-0310-9956-ffa450edef68 --- 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 2a2907675..52268a4a9 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 @@ -188,7 +188,7 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,jqueryui,typeahead) { var mappedRoles = $.map(data, function(item) { return item.name; }); - user.assignedRoles = ko.observableArray(mappedRoles); + user.assignedRoles = ko.observableArray(mappedRoles.sort()); // user form binding var createUserForm = mainContent.find("#createUserForm");