As a user of the to-do list application,
I want to be able to sort my tasks based on different criteria,
So that I can arrange tasks by priority, or other criteria.
Description
Acceptance criteria
Empty or incomplete tasks should still appear in the sorted list.
Switching sorting options should reorganize tasks accordingly.
The user sees a dropdown list with sorting options:
"High Priority," "Medium Priority," and "Low Priority."
After selecting a priority level, tasks are sorted accordingly: high priority first, then medium, then low.
Tasks within the same priority level are sorted based on their original order.
Tasks
Add state to track the selected priority level
Implement the sorting logic based on the selected priority.
Apply sorting to the task list when the priority changes
Implement user interaction to select a priority level.
Value proposition
Task Sorting
As a user of the to-do list application, I want to be able to sort my tasks based on different criteria, So that I can arrange tasks by priority, or other criteria.
Description
Acceptance criteria
Tasks
Size
S