Browse Source

UI-2459: fix sort added, as it's now fixed in the callApi layer

4.3
Jean-Roch Maitre 9 years ago
parent
commit
1b42634613
2 changed files with 0 additions and 8 deletions
  1. +0
    -4
      submodules/groups/groups.js
  2. +0
    -4
      submodules/users/users.js

+ 0
- 4
submodules/groups/groups.js View File

@ -1361,10 +1361,6 @@ define(function(require){
var self = this;
self.groupsListUsers(function(dataUsers) {
dataUsers.sort(function(a,b) {
return monster.util.cmp(a.first_name.toLowerCase(), b.first_name.toLowerCase()) || monster.util.cmp(a.last_name.toLowerCase(), b.last_name.toLowerCase());
});
var dataTemplate = {
extra: {
listUsers: dataUsers


+ 0
- 4
submodules/users/users.js View File

@ -413,10 +413,6 @@ define(function(require){
sortedUsers.push(user);
});
sortedUsers.sort(function(a,b) {
return monster.util.cmp(a.first_name.toLowerCase(), b.first_name.toLowerCase()) || monster.util.cmp(a.last_name.toLowerCase(), b.last_name.toLowerCase());
});
dataTemplate.users = sortedUsers;
return dataTemplate;


Loading…
Cancel
Save