Sorting tasks based priority - empty values included in sort

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.

To Reproduce

Steps to reproduce the behavior:

    1. Create a set of tasks and add a few tasks
    1. Give priority to a few tasks and leave the rest empty
    1. Sort based on priority - ascending.
    1. See the empty priority tasks at the top

Expected behavior

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.

System Information:

  • OS: Arch linux
  • Anytype Version: 0.29.0 (reported in 0.19.9)

Additional context

I am describing a specific problem with task set here, but I think it applies generally to sets of objects.

Image of the problem:

5 Likes

Same issue with date sorting. E.g., if one wants to sort tasks by date in an ascending order to put the most pressing tasks upfront, tasks with no due dates show up first instead of last.

5 Likes

@sjmgarnier Thank you for your notice! It has been added to the bug tracker

2 Likes

Are there any updates on this? I assumed that this was actually by design.

1 Like

This seems to be still in there.

1 Like

This issue has been added to our issue tracker and was received by the Development Team.

1 Like

Hello everyone. We will introduce ability to choose between several options of sorting later. But for now it is considered to be intended way of work. If this topic will receive significant amount of votes we will increase priority for this one :saluting_face:

1 Like

For every Set I sort by numbers, showing “non value” objects before the others makes the sorting kind of useless to me.

3 Likes

I agree, this is not standard sorting per my experience.

1 Like

+1

Any chance you reverse this option, so showing empty values at the bottom instead, before you introduce the sorting options in the future?

This very minor thing pretty much makes all of my workflows impossible since I if I want to add a sort, I need to make sure that every object has something in that relation or else the empty ones will bubble at the top and make the relevant objects show up at the bottom.

2 Likes

Hi @Filip we will increase priority for sorting of tags and statuses and hopefully you will see it soon after public release.

3 Likes

I hate to be a pain, but I’m just wondering if this is still planned for this quarter. Especially if you will just be moving the empty values to the end or if you will allow users to choose.

3 Likes

This makes my current setup with my to do list worthless, as all tasks I gave no priority in my set are shown on top.

5 Likes

Hi there,
same problem on my side here
All items with due date are coming up at the very bottom
There is also no possibility to sort for defined/undefined first and then in the next step ascending/descending

Is this bug planned for the end-of-august release?

@here
For all the users having the same issue, do not forget to vote on the bug itself at the top.

3 Likes

Hello everyone,

As much as I wanted this issue to be fixed (I even created a post about it), today I found myself to be in need of just how it’s now, I wanted those tasks with undetermined due date to be on the top of the list so that I pay attention to them and force myself to add a date to them.

So, my suggestion is to add a little toggle “Show un-dated objects: On top or On bottom”.

2 Likes

Definitely a plus one added

Reproducible on Windows 10 @v0.37.3

1 Like