We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ae58f commit f1766efCopy full SHA for f1766ef
src/components/TodoList.vue
@@ -82,7 +82,9 @@ export default defineComponent({
82
},
83
computed: {
84
todos() {
85
- return store.getters.getTodos; //get todos
+ return store.getters.getTodos.sort((a: any, b: any) =>
86
+ a.dueDate.localeCompare(b.dueDate)
87
+ ); //get todos and sort tasks by due date with the top one the oldest
88
89
levels() {
90
return store.getters.getLevel; //get current level
0 commit comments