Meteor Sorting - Meteor

How meteor sorting is useful?

Data can be sorted once after getting it from the database. In this example we will create Users collection and will use sort argument ({sort: {name: 1}}) for sorting the collection data by name. Number 1 is used for setting ascending order and -1 for descending order.

meteor-sorting-name

Data can be sorted by email in the same way.

meteor-sorting-email

Finally data can be sorted by joining date.

meteor-sorting-joined

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Meteor Topics