jamiebrynes7 / obsidian-todoist-plugin

Materialize Todoist tasks in Obsidian notes
https://jamiebrynes7.github.io/obsidian-todoist-plugin/
MIT License
912 stars 70 forks source link

priorityAscending and priorityDescending sort opposite #305

Closed softwaresteph closed 5 months ago

softwaresteph commented 5 months ago

Describe the bug priorityAscending and priorityDescending sort in the wrong direction. It is sorting by number instead of Priority

For example: P1 is the highest priority, so in Descending, it should be on top of the list. Instead, it is on the bottom P4 is the lowest priority, so in Ascending, it should be on top of the list, Instead, it is on the bottom.

To Reproduce Steps to reproduce the behavior: Requirements: Have two tasks of differing priorities, let's say a P1 and P4 To your filter use:

sorting:
   - priorityAscending 

Expected behavior

Actual behavior

Screenshots Ascending Screenshot 2024-04-04 at 16 58 43Screenshot 2024-04-04 at 16 58 49

Descending Screenshot 2024-04-04 at 16 58 26Screenshot 2024-04-04 at 16 58 33

Recording

jamiebrynes7 commented 5 months ago

Hey @softwaresteph this should now be fixed in the latest release!