# Same sort order for folder and files

**URL:** <https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516>\
**Category:** Feature requests\
**Tags:** ui-ux, valuable\
**Created:** [December 4, 2020, 10:11pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516 "2020-12-04T22:11:07Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![mchamber](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@mchamber](https://forum.obsidian.md/u/mchamber)\
**Post date:** [March 1, 2024, 2:31am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/42 "2024-03-01T02:31:38Z")

</div>

+1 would also love this

---

<div class="post-metadata">

**Author:** ![severdia](https://forum.obsidian.md/user_avatar/forum.obsidian.md/severdia/32/58791_2.png) [@severdia](https://forum.obsidian.md/u/severdia)\
**Post date:** [March 9, 2024, 8:13pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/43 "2024-03-09T20:13:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kittenzzz](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/8baadc/32.png) [@kittenzzz](https://forum.obsidian.md/u/kittenzzz)\
**Post date:** [March 24, 2024, 7:17pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/44 "2024-03-24T19:17:06Z")

</div>

+1, would really appreciate this feature.

---

<div class="post-metadata">

**Author:** ![JohnSheppard](https://forum.obsidian.md/user_avatar/forum.obsidian.md/johnsheppard/32/62824_2.png) [@JohnSheppard](https://forum.obsidian.md/u/JohnSheppard)\
**Post date:** [March 29, 2024, 9:37pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/45 "2024-03-29T21:37:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aglee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@aglee](https://forum.obsidian.md/u/aglee)\
**Post date:** [April 2, 2024, 5:20pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/46 "2024-04-02T17:20:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aglee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@aglee](https://forum.obsidian.md/u/aglee)\
**Post date:** [April 2, 2024, 5:37pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/47 "2024-04-02T17:37:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hinnerk](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@hinnerk](https://forum.obsidian.md/u/hinnerk)\
**Post date:** [April 9, 2024, 5:49pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/48 "2024-04-09T17:49:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![berot3](https://forum.obsidian.md/user_avatar/forum.obsidian.md/berot3/32/56593_2.png) [@berot3](https://forum.obsidian.md/u/berot3)\
**Post date:** [April 11, 2024, 8:34pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/49 "2024-04-11T20:34:38Z")

</div>

Have u tried [GitHub - ozntel/file-tree-alternative: This Obsidian Plugin allows users to have a different file explorer experience.](https://github.com/ozntel/file-tree-alternative) ?

---

<div class="post-metadata">

**Author:** ![severdia](https://forum.obsidian.md/user_avatar/forum.obsidian.md/severdia/32/58791_2.png) [@severdia](https://forum.obsidian.md/u/severdia)\
**Post date:** [April 14, 2024, 3:16pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/50 "2024-04-14T15:16:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![btodoroff](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@btodoroff](https://forum.obsidian.md/u/btodoroff)\
**Post date:** [June 7, 2024, 2:17am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/51 "2024-06-07T02:17:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sanjarcode](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sanjarcode/32/44293_2.png) [@sanjarcode](https://forum.obsidian.md/u/sanjarcode)\
**Post date:** [June 22, 2024, 8:30am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/52 "2024-06-22T08:30:12Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![sanjarcode](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sanjarcode/32/44293_2.png) [@sanjarcode](https://forum.obsidian.md/u/sanjarcode)\
**Post date:** [June 22, 2024, 9:55am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/53 "2024-06-22T09:55:33Z")

</div>

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

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

```

Applies the setting globally to all files and folder.

---

<div class="post-metadata">

**Author:** ![SebastianMC](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@SebastianMC](https://forum.obsidian.md/u/SebastianMC)\
**Post date:** [June 24, 2024, 3:18pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/54 "2024-06-24T15:18:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cybersader](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cybersader/32/73909_2.png) [@cybersader](https://forum.obsidian.md/u/cybersader)\
**Post date:** [December 20, 2024, 1:58am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/55 "2024-12-20T01:58:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [January 12, 2025, 4:27pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/56 "2025-01-12T16:27:39Z")

</div>

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

Related:

> [@File Explorer Custom Sort](https://forum.obsidian.md/t/file-explorer-custom-sort/1602/13):
>
> Is this feasible with the new plugin API? It does give you access to the Vault interface.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [February 26, 2025, 6:32pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/57 "2025-02-26T18:32:13Z")

</div>

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](https://github.com/SebastianMC/obsidian-custom-sort/issues/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.)

---

<div class="post-metadata">

**Author:** ![Davotron](https://forum.obsidian.md/user_avatar/forum.obsidian.md/davotron/32/79618_2.png) [@Davotron](https://forum.obsidian.md/u/Davotron)\
**Post date:** [April 23, 2025, 6:51am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/58 "2025-04-23T06:51:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fcy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/fcy/32/19716_2.png) [@fcy](https://forum.obsidian.md/u/fcy)\
**Post date:** [August 27, 2025, 6:46pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/59 "2025-08-27T18:46:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![skaldebane](https://forum.obsidian.md/user_avatar/forum.obsidian.md/skaldebane/32/84183_2.png) [@skaldebane](https://forum.obsidian.md/u/skaldebane)\
**Post date:** [August 27, 2025, 10:05pm UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/60 "2025-08-27T22:05:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [August 28, 2025, 1:45am UTC](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516/61 "2025-08-28T01:45:57Z")

</div>

> [@CawlinTeffid](#):
>
> This request feels pressing to me again since Obsidian’s “deferred views” performance optimization broke the “Custom File Explorer sorting” plugin on mobile.

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.

[Previous page](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516.md?page=2)

[Next page](https://forum.obsidian.md/t/same-sort-order-for-folder-and-files/9516.md?page=4)
