Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Created March 27, 2016 12:47
Show Gist options
  • Select an option

  • Save dai-shi/b5b99391b48270235dd8 to your computer and use it in GitHub Desktop.

Select an option

Save dai-shi/b5b99391b48270235dd8 to your computer and use it in GitHub Desktop.
diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx
index 332bd6e..546d198 100644
--- a/imports/ui/App.jsx
+++ b/imports/ui/App.jsx
@@ -58,6 +58,6 @@ App.propTypes = {
export default createContainer(() => {
return {
- tasks: Tasks.find({}).fetch(),
+ tasks: Tasks.find({}, { sort: { createdAt: -1 } }).fetch(),
};
}, App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment