-
Good evening everybody. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @tucoawa! I'm Dosu and I’m helping the Trilium team. Trilium currently only supports sorting folder contents by a single criterion using the #sorted attribute—if you specify multiple #sorted attributes (like #sorted=author #sorted=year), only the first one is used and the rest are ignored. Multi-level sorting (e.g., first by author, then by year) is not natively supported at this time. The sorting logic applies just one property or label for ordering, as described in the documentation and confirmed by the codebase behavior see docs. If you need multi-level sorting, there isn't a built-in workaround. You could consider combining your criteria into a single custom label (like #sortkey=Smith-2023) and sorting by that, but this requires manual management. Expanding to true multi-level sorting would require changes to Trilium's sorting logic. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @tucoawa! I'm Dosu and I’m helping the Trilium team.
Trilium currently only supports sorting folder contents by a single criterion using the #sorted attribute—if you specify multiple #sorted attributes (like #sorted=author #sorted=year), only the first one is used and the rest are ignored. Multi-level sorting (e.g., first by author, then by year) is not natively supported at this time. The sorting logic applies just one property or label for ordering, as described in the documentation and confirmed by the codebase behavior see docs.
If you need multi-level sorting, there isn't a built-in workaround. You could consider combining your criteria into a single custom label (like #sortkey=S…