Same sort order for folder and files

+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.

3 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

Have u tried GitHub - ozntel/file-tree-alternative: This Obsidian Plugin allows users to have a different file explorer experience. ?

Yes, the developer is improving it and fixing some of the bugs, but it’s still too buggy to be used every day.

+1 Hate that I have to kludge putting everything under a folder or nothing under a folder just to get sorting. Amazed this still isn’t an option to unify folders and notes for sorting.

@SebastianMC how exactly to use this? I can see that the sortspec applies to a given folder only. How do I configure the plugin to treat folder and files equally?

Got the solution, need to add this to sortspec (keep it anywhere in root or any other folder):

---
sorting-spec: |-
  target-folder: /*
  order-asc: a-z
---

Applies the setting globally to all files and folder.

3 Likes

Hi @sanjarcode

indeed, you correctly figured out the basic usage pattern!

Technically, the sorting-spec: applies to the specified target-folder: - a single specified target folder, a list of target folders (repeat target-folder:), pattern-based matching for folder names/paths, etc. You should be able to conveniently fine-tune the affected folders. At the same time, skipping the target-folder: at all by default applies the sorting to the parent folder of the note containing the spec.

Then, the sorting-spec: itself can be placed in metadata (aka properties) of note(s) named sortspec. Additionally, you can use the ā€˜folder notes’ (notes inside a folder named exactly as its parent folder). It is an equivalent location. You can also keep the sorting-spec: in metadata (aka properties) of any note(s) you like - you need only to enter the note name(s) in plugin settings.

My only way around this currently is always to use folder notes.

+1. I’d like to have this option on a per-folder basis—I have use cases for both sorting methods.

Related:

This request feels pressing to me again since Obsidian’s ā€œdeferred viewsā€ performance optimization broke the ā€œCustom File Explorer sortingā€ plugin on mobile. I now have to either frequently run the sort command or live with Obsidian’s sorting that differs from everything else on my device. (Because only the visible sidebar views are loaded on startup, so if the file browser isn’t visible the plugin can’t apply its sorting; reloads happen often on mobile; and there’s no way for it to be notified when the browser becomes visible [Issue 193].)

While I was glad to have the plugin as a workaround while it lasted, this should be a built in feature as part of Obsidian’s attempts to match the platforms it’s on (which it generally does well). (Plus the plugin was difficult to setup, partly because it’s overkill for this use case.)

2 Likes

+1

Trying to achieve this with onboard tools as long as I am using Obsidian.
Plugin based aproaches are breaking for whatever reason all the time…

A few years later, I’m going to reiterate my vote for this one.

1 Like

Yes!! Would love this to become part of Obsidian core.
Trying to set up a Johnny.Decimal (jdcm.al) system in Obsidian is much harder without this; I’m forced to put every ID in a folder (which is unnecessary for simple notes) unless I use one of the plugins that change this behavior (and break often).

This has been fixed, but I’d still like to not have to rely on a user-unfriendly plugin just to match my OS’s file ordering convention.