davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Sort by due date doesn't sort #10

Closed np-trivial closed 4 years ago

np-trivial commented 4 years ago

When sorting by due date, all the items with a due: tag rise to the top, but they are not in any order than I can detect.

davraamides commented 4 years ago

Thanks. It looks like there is a bug with parsing the date part of the tag value. I will try and fix this and one or two other issues over the holiday and push an update.

On Nov 26, 2019, at 9:42 AM, np-trivial notifications@github.com wrote:

 When sorting by due date, all the items with a due: tag rise to the top, but they are not in any order than I can detect.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

davraamides commented 4 years ago

Fixed with new release 1.4.10. Turns out the regex was wrong - it was only parsing the year part of yyyy-mm-dd so it sorted only on year. The use of \w+ in the regex didn't match the - in the date.