Explain the problem as you see it
Suppose we have:
Cat 1
- task 1
- task 2#priority
Cat 2 - task 3
- task 4 #priority
Query: all with #priority
I want tasks to be grouped by category
Why is this a problem for you?
Sure we can achieve this result with more structure, by having #task with field category, but often we want a simple grouping without too much setup and refactoring for existing notes.
Suggest a solution
Add parent/grandparent to system fields available in group by clause of searches.