Skip to content

Commit 3667ee3

Browse files
committed
docs: Combine tag-sorting sections in Sorting.md
1 parent da5e5de commit 3667ee3

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

docs/Queries/Sorting.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ For more information, including adding your own customised statuses, see [[Statu
9090

9191
- `sort by tag` (the description of the task)
9292

93+
If you want to sort by tags, by default it will sort by the first tag found in the description. If you want to sort by a tag that comes after that then you can specify the index at the end of the query. All tasks should have the same amount of tags for optimal sorting and the tags in the same order. The index starts from 1 which is also the default.
94+
95+
For example this query will sort by the second tag found in the description.
96+
97+
```tasks
98+
sort by tag 2
99+
```
100+
101+
> [!released]
102+
Tag sorting was introduced in Tasks 1.6.0.
103+
93104
## Sort by File Properties
94105

95106
### File Path
@@ -152,19 +163,6 @@ If given, the sort order will be reverse for that property.
152163
Note that `reverse` will reverse the entire result set.
153164
For example, when you `sort by done reverse` and your query results contain tasks that do not have a done date, then those tasks without a done date will be listed first.
154165

155-
## Tag sorting
156-
157-
> [!released]
158-
Introduced in Tasks 1.6.0.
159-
160-
If you want to sort by tags, by default it will sort by the first tag found in the description. If you want to sort by a tag that comes after that then you can specify the index at the end of the query. All tasks should have the same amount of tags for optimal sorting and the tags in the same order. The index starts from 1 which is also the default.
161-
162-
For example this query will sort by the second tag found in the description.
163-
164-
```tasks
165-
sort by tag 2
166-
```
167-
168166
---
169167

170168
## Examples

0 commit comments

Comments
 (0)