Parties are now sorted in both character lists.
This commit is contained in:
@@ -7,7 +7,10 @@ Template.characterList.helpers({
|
||||
);
|
||||
},
|
||||
parties() {
|
||||
return Parties.find({owner: Meteor.userId()});
|
||||
return Parties.find(
|
||||
{owner: Meteor.userId()},
|
||||
{sort: {name: 1}},
|
||||
);
|
||||
},
|
||||
charactersInParty(partyId) {
|
||||
var userId = Meteor.userId();
|
||||
|
||||
@@ -5,8 +5,10 @@ Template.characterSideList.onCreated(function() {
|
||||
|
||||
Template.characterSideList.helpers({
|
||||
parties() {
|
||||
var userId = Meteor.userId();
|
||||
return Parties.find({owner: userId});
|
||||
return Parties.find(
|
||||
{owner: Meteor.userId()},
|
||||
{sort: {name: 1}},
|
||||
);
|
||||
},
|
||||
charactersInParty() {
|
||||
var userId = Meteor.userId();
|
||||
|
||||
Reference in New Issue
Block a user