From da985f825460409f0f6f43ab7384151ce8367766 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 27 Nov 2013 03:42:26 +0000 Subject: [PATCH] [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 --- .../archiva-webapp/src/main/webapp/js/redback/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5