Describe the bug
When sorting tasks based on priority, the tasks with empty priority values are also included in the sort (and it looks like they are assumed to have a value of zero). When sorting based on ascending priority, the tasks with empty values come first, which is not expected behavior.
Steps to reproduce the behavior:
- Create a set of tasks and add a few tasks
- Give priority to a few tasks and leave the rest empty
- Sort based on priority - ascending.
- See the empty priority tasks at the top
Tasks with empty values should not be part of the sort. More generally, when objects are in sets, the ones with empty values should be excluded from the sort and placed at the bottom.
- OS: Arch linux
- Anytype Version: 0.19.9
I am describing a specific problem with task set here, but I think it applies generally to sets of objects.
Image of the problem: