Skip to content

Commit

Permalink
Step 13.3: Add sorting by party name to PartiesList
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and dotansimha committed Nov 27, 2016
1 parent 315840b commit d2b49af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/imports/app/parties/parties-list.component.ts
Expand Up @@ -36,7 +36,11 @@ export class PartiesListComponent implements OnInit, OnDestroy {
};

this.partiesSub = MeteorObservable.subscribe('parties', options).subscribe(() => {
this.parties = Parties.find({}).zone();
this.parties = Parties.find({}, {
sort: {
name: this.nameOrder
}
}).zone();
});
}

Expand Down

0 comments on commit d2b49af

Please sign in to comment.