File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ publish: true
6
6
7
7
## What's New?
8
8
9
+ - X.Y.Z: 🔥 Add [[ Grouping#Reversing groups|reverse sorting of groups]]
9
10
- 3.6.0: 🔥 Add [[ Grouping#Other task properties|group by urgency]]
10
11
- 3.6.0: 🔥 Add [[ Sorting#Other task properties|sort by recurring]]
11
12
- 3.5.0: 🔥 New [[ Global Query]] facility.
Original file line number Diff line number Diff line change @@ -116,7 +116,29 @@ See the [screenshots below](#screenshots) for how this looks in practice.
116
116
> [ !info]
117
117
> Headings are displayed in case-sensitive alphabetical order, not the original order.
118
118
119
- ---
119
+ ## Reversing groups
120
+
121
+ > [ !released]
122
+ > Reversing of group headings was introduced in Tasks X.Y.Z.
123
+
124
+ After the name of the property that you want to group by, you can add the ` reverse ` keyword.
125
+ If given, the group headings will be reversed for that property.
126
+
127
+ For example:
128
+
129
+ - ` group by due ` will sort the group headings:
130
+ - from ** oldest** due date first...
131
+ - to ** newest** due date last
132
+ - ` group by due reverse ` will sort the group headings:
133
+ - from ** newest** due date first...
134
+ - to ** oldest** due date last
135
+
136
+ > [ !tip]
137
+ > The ` reverse ` keyword controls the order that group headings are displayed.
138
+ >
139
+ > The [[ Sorting|sort by]] facility, by contrast, controls the order in which displays are displayed * inside* each group.
140
+
141
+ ## Notes
120
142
121
143
> [ !info]
122
144
> The order of operations ensures that grouping does not modify which tasks are displayed, for example when the ` limit ` option is used:
@@ -148,9 +170,19 @@ Tasks grouped.
148
170
149
171
## Examples
150
172
173
+ Give me three levels of grouping, to indicate the locations of my tasks:
174
+
151
175
```tasks
152
176
not done
153
177
group by folder
154
178
group by filename
155
179
group by heading
156
180
```
181
+
182
+ Show me tasks I need to do today - and put today's tasks first, for visibility:
183
+
184
+ ```tasks
185
+ not done
186
+ due before tomorrow
187
+ group by due reverse
188
+ ```
You can’t perform that action at this time.
0 commit comments