mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Updated Sorting (markdown)
parent
76d38083e4
commit
4fc6b42be5
@ -4,9 +4,11 @@ You can sort notes one time by right-clicking parent note in the note tree, Adva
|
||||
|
||||
## Automatic / permanent sorting
|
||||
|
||||
**This documentation applies to 0.49 and later. In previous versions `#sorted` worked alphabetically**
|
||||
Child notes can be kept sorted by attaching [[labels|Attributes]] to the parent note:
|
||||
|
||||
Child notes can be kept sorted by attaching `#sorted` [[label|Attributes]] to the parent note.
|
||||
* `#sorted` - enables sorting, can optionally include name of the note's property/label (see details below)
|
||||
* `#sortDirection` - by default ascending, set it to `desc` value to reverse the sort order
|
||||
* `#sortFoldersFirst` - notes with children will be sorted on top
|
||||
|
||||
Sorting works by comparing note property or a specific label on the child notes.
|
||||
|
||||
@ -16,7 +18,7 @@ There are 3 sorting levels, where the first one has the highest priority and the
|
||||
2. sorting by child's property or a specific label defined on the parent note's `#sorted` label
|
||||
a) parent note has `#sorted` with no value - by default sorting will be done alphabetically
|
||||
b) parent note has `#sorted=title` or `#sorted=dateModified` or `#sorted=dateCreated` - sorting will be done based on the defined note's property
|
||||
c) parent note has `#sorted` label with any other value - this value is the name of the child note's label whose value will be used for sorting. So e.g. you set `#sorted=myOrder` on the parent note and then child notes will have labels `#myOrder=001`, `#myOrder=002" etc.
|
||||
c) parent note has `#sorted` label with any other value - this value is the name of the child note's label, whose value will be used for sorting. So e.g. you set `#sorted=myOrder` on the parent note and then child notes will have labels `#myOrder=001`, `#myOrder=002" etc.
|
||||
3. sorting of "last resort" is alphabetical
|
||||
|
||||
All comparisons are made string-wise - e.g. "1" < "2" or "2020-10-10" < "2021-01-15" but also "2" > "10".
|
Loading…
x
Reference in New Issue
Block a user