Sorting and filtering tasks
The library allows you to sort tasks in the list after initialization of To Do List. There are two ways to view the tasks in the sorted order:
via the Sort by option of the Toolbar menu. You may sort tasks by text, due date, completion date, creation date, or editing date
by: task => task.id, // or by: "text"
// tree: true // enable tree sort, false by default
You can find the tasks that match the specified criteria in 2 ways:
via the search bar of Toolbar
setFilter()method. The method supports the strict mode of filtering that allows you to filter tasks by the exact match.
// filter data by the specified rules
To reset filtering, call the method without parameters:
// reset filtering