Same sort order for folder and files

I say YES
to me it makes a lot of sense since I’m also a Mac user

+1

+1

Yes please.

yes +1 seems obvious feature

especially when using folder notes this is annoying

2 Likes

+1 Would love to see an option where files and folders are treated the same when viewing alphabetically. Viewing folder notes and regular notes ordered alphabetically together is my primary use case.

2 Likes

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)

6 Likes

This plugin is fantastic @SebastianMC , thanks a lot for this!

I just played around with it for the last hour and it works really well. I’m loving both the granularity of customization and the fact that you can switch the custom order on and off in a click.

All my use cases are covered by your plugin. I think you made a very useful tool for a lot of obsidian users!

1 Like

+1 for this feature!

Thank you for this! I’m just starting to use Obsidian and was worried to find that this critical feature was missing.

1 Like

When using the Files pane and changing the sort order (from Z to A, or A to Z, or last modified, or last created - for example) for a series of folders (2023-01-01, 2023-01-02, 2023-01-03 for example) I expect the sort order to apply to the folders located in the root of the vault. However, the folders are ignored and the sort order only applies to the files within the subfolders of the vault.

+1 for a folder sorting that works like the file sorting. It’s full of pain to scroll down a list of month for daily notes folders.

+1 for what would be a useful feature

+1

Yes, please! This would be incredibly useful.

+1 would also love this

+1 for this feature. I want Obsidian to stop forcing a non-user friendly way of sorting content. This should be a setting, not left to a community plugin.

2 Likes

+1, would really appreciate this feature.

+1. I’m resorting to Sebastians plugin, but really think it orta be built in. Thank you for reading.

+1 This sorting option seems an obvious omission. My workflow is cumbersome without it.

Thanks for this! Some sanity is restored to my world.

+1 for having alphabetical ordering instead of folders first ordering as a feature of Obsidian.

For the record: I installed the custom-sort plugin and uninstalled two minutes later because it would take longer to wrap my head around how it works. It’s honestly impressive and certainly useful to many, just overkill for my simple needs.

1 Like