From 25b20bb2fe013227ebf2054259d5842a441f5337 Mon Sep 17 00:00:00 2001 From: joeldrapper Date: Thu, 24 Jul 2014 19:28:30 +0100 Subject: [PATCH] Roles drop down sorted by ID closes #3391 - Changed sort order to ID instead of name --- core/client/controllers/modals/invite-new-user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/controllers/modals/invite-new-user.js b/core/client/controllers/modals/invite-new-user.js index 96f82654a0..092ca43952 100644 --- a/core/client/controllers/modals/invite-new-user.js +++ b/core/client/controllers/modals/invite-new-user.js @@ -14,7 +14,7 @@ var InviteNewUserController = Ember.Controller.extend({ self = this; roles.promise = this.store.find('role', { permissions: 'assign' }).then(function (roles) { - return roles.rejectBy('name', 'Owner').sortBy('name'); + return roles.rejectBy('name', 'Owner').sortBy('id'); }).then(function (roles) { // After the promise containing the roles has been resolved and the array // has been sorted, explicitly set the selectedRole for the Ember.Select.