mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Board view (sidebar) - sort Organizations and Teams by Display Name (addBoardOrgPopup, addBoardTeamPopup)
This commit is contained in:
parent
cec05dae47
commit
8d2c5a9bbb
1 changed files with 2 additions and 3 deletions
|
@ -1325,8 +1325,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
Template.addBoardOrgPopup.helpers({
|
||||
orgsDatas() {
|
||||
// return Org.find({}, {sort: { createdAt: -1 }});
|
||||
let orgs = Org.find({}, {sort: { createdAt: -1 }});
|
||||
let orgs = Org.find({}, {sort: { orgDisplayName: 1 }});
|
||||
return orgs;
|
||||
},
|
||||
});
|
||||
|
@ -1499,7 +1498,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
Template.addBoardTeamPopup.helpers({
|
||||
teamsDatas() {
|
||||
let teams = Team.find({}, {sort: { createdAt: -1 }});
|
||||
let teams = Team.find({}, {sort: { teamDisplayName: 1 }});
|
||||
return teams;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue