From 2de66c0c14a8a043eaa9fb38720d0b5c54de045b Mon Sep 17 00:00:00 2001 From: Rob <34193243+robots4life@users.noreply.github.com> Date: Thu, 18 Nov 2021 14:36:30 +0100 Subject: [PATCH] Update 03-forms-and-events.md Inconsistency between the code in step https://blaze-tutorial.meteor.com/simple-todos/02-collections.html#2-3-Render-Tasks-Collection and https://blaze-tutorial.meteor.com/simple-todos/03-forms-and-events.html#3-4-Add-Submit-Listener. ```javascript return TasksCollection.find({}); ``` is suddenly changed to ```javascript return TasksCollection.find({}, { sort: { createdAt: -1 } }); ``` Sure it makes sense to sort the results, however it might be better to have this sorting code only included later on, that is, in the next step where it is explained. https://blaze-tutorial.meteor.com/simple-todos/03-forms-and-events.html#3-5-Show-Newest-Tasks-First --- tutorial/simple-todos/03-forms-and-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/simple-todos/03-forms-and-events.md b/tutorial/simple-todos/03-forms-and-events.md index 15139f7..4c267a2 100644 --- a/tutorial/simple-todos/03-forms-and-events.md +++ b/tutorial/simple-todos/03-forms-and-events.md @@ -73,7 +73,7 @@ Now we need to add a listener to the `submit` event on the form: ```js ... tasks() { - return TasksCollection.find({}, { sort: { createdAt: -1 } }); + return TasksCollection.find({}); }, });