mirror of
https://github.com/zadam/trilium.git
synced 2024-12-25 00:34:08 +08:00
Page:
Sorting
Pages
Advanced showcases
Anonymized database
Apache proxy setup
Archived notes
Attachments
Attribute inheritance
Attributes
Backup
Book note
Bookmarks
Canvas note
Cloning notes
Code notes
Custom request handler
Custom widget
Data directory
Day notes
Default note title
Desktop installation
Docker server installation
Document
ETAPI
Error logs
Events
Evernote import
FAQ
Frontend Basics
Home
Images
Keyboard shortcuts
Kubernetes server installation
Link map
Links
Manual server installation
Markdown
Mobile frontend
Nginx proxy setup
NixOS server installation
Note hoisting
Note map
Note navigation
Note revisions
Note
Onenote
Packaged server installation
Patterns of personal knowledge base
Privacy policy
Promoted attributes
Protected notes
Read only note
Relation map
Release notes v0.48
Saved search
Screenshot tour
Script API
Scripts
Search
Server installation
Sharing
Sorting
Synchronization
TLS configuration
Task manager
Template
Text notes
Theme Gallery
Themes
Tree concepts
Tree manipulation
Troubleshooting
Upgrading Trilium
Web clipper
Weight tracker
Widget Basics
Workspace
No results
10
Sorting
zadam edited this page 2023-09-25 23:27:17 +02:00
Table of Contents
One time sorting
You can sort notes one time by right-clicking parent note in the note tree, Advanced -> Sort notes by ...
Automatic / permanent sorting
Child notes can be kept sorted by attaching labels 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 todesc
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.
There are 4 sorting levels, where the first one has the highest priority and the lower one will be applied only if the 2 compared notes are equal based on higher priority comparison.
- implicit sorting by
#top
label - child notes with this label will appear on the top of the folder. - implicit sorting by
#bottom
label (since Trilium 0.62) - child notes with this label will appear on the bottom of the folder. - 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. - 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".
- Screenshot tour
- Basic concepts
- Installation & setup
- Advanced usage
- Developer guides
- FAQ
- Troubleshooting
Back to Overview