Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Due Date sorting is broken when mixing tasks with a due date and without one #5

Closed
stacksjb opened this issue Jan 28, 2023 · 2 comments

Comments

@stacksjb
Copy link

I have a filter for all tasks with a label that are either due, overdue, or no due date (my workflow relies heavily on this filter, so things don't show up until they are due and recurring tasks go away), for example:
@computer & (due today | overdue | no date)

However, sorting is working inconsistently or not at all - it appears it may have something with overdue dates being sorted after those that are due today.

Sorting on due:desc, my first task is due Jan 20th, the next task I am given has no due date, and the next task is due Jan 17th
Sorting on prio:desc,due:desc, I get my P1 tasks first, but the first task I am given is due today, then the next one is due 3 days ago. From there on, sorting appears correct for P2, and then when I get to P3 tasks I again am given ones due Jan 20th before being given ones due earlier and later.

Is there possibly some sort of limit on how many tasks are returned and sorted, which might be causing the issue?

I was really hoping to use this tool but I am finding it is inconsistently returning the top item from the list.

@stacksjb stacksjb changed the title Due Date sorting is broken Due Date sorting is broken when mixing tasks with a due date and without one Jan 28, 2023
@stacksjb
Copy link
Author

I may have found at least part of the issue - if I sort a filter with items with only a due date, it appears sorting works correctly. Sorting appears inconsistent/broken when mixing tasks without a due date and those with.

In Todoist, sorting items by due date sorts ascending by default, with tasks without a due date below those with one. That means you get the oldest things on top first, then the newer due dates, and then tasks with no due date.

However, it appears Flowist sorts tasks without a due date first, so if I sort ascending, I get all the items without a due date first, then those with a due date second (and due date sorting is broken). Meanwhile, sorting descending appears to work correctly (at first) but the due dates are still sorted incorrectly (once I get to them).

So, it appears that due date sorting is broken when mixing due dates and no due dates.

@selfire1
Copy link
Owner

selfire1 commented Jun 1, 2024

Should be fixed now with the rewrite.

@selfire1 selfire1 closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants