Permalink
Browse files

Step 13.3: Add sorting by party name to PartiesList

1 parent 0f871e6 commit 8d2756ab803b3ae004a5b8f15e17dc6c327f343b @kamilkisiela kamilkisiela committed with DAB0mB Sep 23, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 client/imports/app/parties/parties-list.component.ts
@@ -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();
});
}

0 comments on commit 8d2756a

Please sign in to comment.