Skip to content

TASKS – sorting by priority works alphabetically #3330

Answered by claremacrae
adrianjenkner asked this question in Q&A
Discussion options

You must be logged in to vote

Sure....

sort by function task.priorityNumber

It's simpler, and equivalent. to write:

sort by priority

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 the sort has no effect....

group by function task.status.name

It's simpler, and equivalent. to write:

group by status.name

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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@claremacrae
Comment options

@adrianjenkner
Comment options

@claremacrae
Comment options

@adrianjenkner
Comment options

@claremacrae
Comment options

Answer selected by adrianjenkner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scope: grouping Changes to the grouping capabilities
2 participants