Sort tasks grouped by task.start.moment.fromNow() #2154
Replies: 5 comments 13 replies
-
Current documented behaviourI would love to have this too. When documenting Hence writing this in the documentation.... (all the examples are in Due, but apply to the other date fields as well) https://publish.obsidian.md/tasks/Queries/Grouping#Due+Date Making a feature request...Feel free to make a thorough Feature Request for this, via Issues, if you would like built-in support for this via this, with proper sorting:
as opposed to:
Possible workaround to achieve the goalLooking at the documentation of You might be able to string something together using this documented technique: So if you recognise that the string contains If you might show future tasks, you might also want to consider distinguishing between If you get anything working, please do note it here, and I will add it to the docs. |
Beta Was this translation helpful? Give feedback.
-
I agree... However, unfortunately, I just don't have time to keep up with converting related requests adding inside tickets to their own tickets, to track them. If you have time to log that request use of variables as a separate feature, it would be a great help, and increase the chances of it happening significantly. |
Beta Was this translation helpful? Give feedback.
-
indeed. Another approach to this would be to provide a way to sort the groups independently of the group names. in this case, once the tasks are grouped by a date, sorting the groups by corresponding date value of first task in each group is easy and will give the correct behaviour, and will remove the need for faffing around with %% comments. The only issue with that idea is I haven’t been been able to come up with any syntax to combine group and sorting of groups into a single line instruction. |
Beta Was this translation helpful? Give feedback.
-
Just to note that I've started work on this - and credited you as co-author @paolo-santucci in the relevant commit - since I couldn't have written this without your work above... |
Beta Was this translation helpful? Give feedback.
-
This is now released in Tasks 4.9.0.
(and starts, scheduled etc..) https://publish.obsidian.md/tasks/Scripting/Task+Properties#Values+in+TasksDate+Properties |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm grouping some tasks by using the function
task.start.moment.fromNow()
.It works fine, but I can't find a way to sort the groups by date descending.
For example:
2 months ago
one month ago
20 days ago
10 days ago
Beta Was this translation helpful? Give feedback.
All reactions