tgrosinger / advanced-tables-obsidian

Improved table navigation, formatting, and manipulation in Obsidian.md
GNU General Public License v3.0
2.09k stars 78 forks source link

[Sorting] "group by path + sort by path reverse" does not reverse order #318

Open parties opened 7 months ago

parties commented 7 months ago

Describe the bug I have my daily notes in a folder like Time/Days/2024-01-01, and I have tasks listed on those days. When I use the following query, the tasks are not sorted by path in reverse order:

not done
path includes Time/Days
sort by path reverse
group by path

I have tried putting the group by path before the sort by path reverse and both produce the same output (which is a list of tasks grouped by file, but the paths are in increasing order, like Time/Days/2024-01-01, Time/Days/2024-01-02, Time/Days/2024-01-03, ...).

To Reproduce Try querying for tasks in your own daily notes folder and have it sort by reverse path.

path includes <your path to daily notes>
sort by path reverse
group by path

Expected behavior The expected sort order would be:

Screenshots

Query used in screenshot:

not done
path includes 01-Time/Days
sort by path reverse
group by path

image

Desktop (please complete the following information):

Additional context I absolutely love this plugin, thank you for making it. 🙌

Let me know if you need any additional context.

tgrosinger commented 7 months ago

Hello, It looks like you're talking about the Obsidian Tasks plugin. Please file this issue over there for them to look at. Thank you.

https://github.com/obsidian-tasks-group/obsidian-tasks