TASKS – sorting by priority works alphabetically #3330
-
Hi, What I’m trying to doI would like to have tasks sorted and grouped from the highest priority to the lowest, and within each priority group, an additional grouping – IN PROGRESS before TO DO. Things I have tried
The above works almost well, and I’m almost satisfied with it, but the tasks are grouped alphabetically by priority instead of from the most important to the least important. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Sure....
|
Beta Was this translation helpful? Give feedback.
Sure....
sort by function task.priorityNumber
It's simpler, and equivalent. to write:
However, if you are grouping by a property, there is generally no point also sorting by it.This is because the sorting only applies to tasks within each group....And if grouping by that property, all the tasks inside the group have the same value, so thesort
has no effect....group by function task.status.name
It's simpler, and equivalent. to write:
group by function task.priorityName.toUpperCase()
See https://publish.obsidian.md/tasks/Queries/Grouping#Priority
Here is an annotated copy of that:
You can see examples of those values here:
https://publish.obsidia…