mirror of
https://github.com/wekan/wekan.git
synced 2026-02-02 14:41:47 +01:00
Merge pull request #4232 from Ben0it-T/sort_organizations_teams_people
Sort Organizations, Teams and People
This commit is contained in:
commit
73408c73af
6 changed files with 16 additions and 14 deletions
|
|
@ -217,7 +217,7 @@ if (Meteor.isServer) {
|
|||
// Index for Organization name.
|
||||
Meteor.startup(() => {
|
||||
// Org._collection._ensureIndex({ name: -1 });
|
||||
Org._collection._ensureIndex({ orgDisplayName: -1 });
|
||||
Org._collection._ensureIndex({ orgDisplayName: 1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ if (Meteor.isServer) {
|
|||
if (Meteor.isServer) {
|
||||
// Index for Team name.
|
||||
Meteor.startup(() => {
|
||||
Team._collection._ensureIndex({ teamDisplayName: -1 });
|
||||
Team._collection._ensureIndex({ teamDisplayName: 1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ Users.helpers({
|
|||
},
|
||||
orgsUserBelongs() {
|
||||
if (this.orgs) {
|
||||
return this.orgs.map(function(org){return org.orgDisplayName}).join(',');
|
||||
return this.orgs.map(function(org){return org.orgDisplayName}).sort().join(',');
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
|
@ -533,7 +533,7 @@ Users.helpers({
|
|||
},
|
||||
teamsUserBelongs() {
|
||||
if (this.teams) {
|
||||
return this.teams.map(function(team){ return team.teamDisplayName}).join(',');
|
||||
return this.teams.map(function(team){ return team.teamDisplayName}).sort().join(',');
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue