Show sort value as header between groups #498
Replies: 2 comments 1 reply
-
Hello @dcoales. A "group by" option to use in conjunction with "sort" would be a nice feature, but it is not currently available in Tasks. Unless/until that changes, you may want to take a look at the Dataview plugin. Last time I checked, Dataview recognized Tasks' emoji triggers for You would need to convert the latter attributes, and any others you'd want to select/sort/group by, to Dataview's inline field type -- and manage them manually -- but **Dataview's Javascript API, provides more control over filtering, sorting, grouping, etc. (although, as I recall, not so much control over presentation/formatting of results.) |
Beta Was this translation helpful? Give feedback.
-
just to note that Grouping has been released for a little while. https://obsidian-tasks-group.github.io/obsidian-tasks/queries/grouping/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I sort data by certain fields would it be possible to specify that I would like the data to be shown in groups based on 1 or more of the sort values with the sort value shown above the group as a header. For example if I specified "due date" as a sort field I could add a property called "group fields" and whenever the sort value changes then a blank line would be added followed by a header showing the next value of the sort field followed by the next group of records that have that sort field value.
If there are more than 1 sort field you could specify the number of sort fields to include in the grouping e.g. the following config
sort by due date
sort by priority
sort by description
group fields 1
would for example produce the following
2022-01-01
*2022-01-02
If I changed the group fields value to 2 then the result would be
2022-01-01 priority high
2022-01-01 priority low
*2022-01-02
An option to "hide group fields" would also be nice so that data shown in the header isn't repeated in each task.
Beta Was this translation helpful? Give feedback.
All reactions