Same sort order for folder and files

Hi,

for my personal purposes I’ve created a plugin which allows for full control over the order of files and folders in Obsidian File Explorer.

By default the plugin treats folders and files equally and sorts them alphabetically

Order is specified in YAML in front matter. Each folder can have its own ordering logic, or can stay with the Obsidian standard sorting. You can use sorting and grouping rules or direct order specification by listing names (wildcard supported). Or mix and match.

I’ve been using this plugin for some weeks already and it looks like it nicely fills the gap of the missing feature of Obsidian.md (which I love at first sight BTW!)

The simplest case is to let the plugin take over the control of sorting of items in specified folder(s). If you want the items in the root folder of a vault to be sorted alphabetically, folders and files treated equally, put the below YAML snippet in the front matter of the sortspec.md file (the file can be in any location, in a root or in a subfolder, you decide):

---
sorting-spec: |
 target-folder: /
 < a-z
---

After putting this specification in the front matter YAML you need tell the plugin to parse and apply it. This is done by clicking the ribbon button exposed by the plugin. More information in plugin’s documentation

See if it is suitable for your case(s)

8 Likes