Date sorting in Set-View not working correctly

Describe the bug

When sorting tasks based on the Due Date (Descending), the value “Tomorrow” is placed before “Today” which of course is incorrect when sorting based on the Date in descending order. When choosing ascending, the problem reverses.

To Reproduce

Steps to reproduce the behavior:

    1. Create a set of tasks
    1. Add one task with due date “Today” and one “Tomorrow”
    1. Sort based on the due date (Descending)

Expected behavior

The tasks should be correctly ordered based on their due date.

System Information:

  • OS: Fedora 34
  • Anytype Version: 0.19.0 (AppImage)
1 Like

A similar behavior occurs when the due date is “Yesterday”. It will then show up below “Today” tasks, which of course is wrong as well.

1 Like

I sorted some objects in my set and it seems they are now sorted in the correct order. Can you confirm this?

Yes, but now a different bug occurs. When sorting on a secondary column (for example, a numeric priority rating) the entries for each date are not ordered correctly according to the priority. But I guess this would be a new bug report.

Yes, please make a seperate report for this bug.