Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Created August 8, 2013 22:39
Show Gist options
  • Save nanusdad/6189497 to your computer and use it in GitHub Desktop.
Save nanusdad/6189497 to your computer and use it in GitHub Desktop.
Meteor publish with sort
Meteor.publish('todos', function() {
return Todos.find({}, {
sort: {
timestamp: -1
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment