File Explorer Custom Sort

+1, this would be really useful.

1 Like

+1 yes please. Important feature. Thank you, devs.

1 Like

For what it’s worth, this is one of the few things I find missing from my experience in Obsidian. It would be a delight to be able to freely sort the files in the tree.
I made an account just to post a +1 for this request.

1 Like

I also need this.

1 Like

It would be great if that feature can be adjusted for different purpose. In my mind comes for example docusaurus which was used for the great getting started tutorial for plugins at Obsidian Plugin Developer Docs | Obsidian Plugin Developer Docs (

It uses yaml frontmatter for markdown files:

sidebar_position: 1.0

The cool thing here is the type is a float. So if i want to insert between 1 and 2 i can write 1.5, which makes less commit changes if my vault is under git control.

For directory it uses a _category_.json in each directory:

  "label": "Advanced guides",
  "position": 40

I can’t believe my luck but Custom Sort has officially been achieved.
Obsidian Bartender, a wonderful plugin that I already use for custom sorting of icons in the sidebar, has added Custom sorting to the file browser.


In order to install Obsidian Bartender, either manually install the plugin or use BRAT and search for nothingislist/obsidian-bartender.

Once you’ve installed it, click the official Sort button in the file browser and hit “Custom” at the bottom.


My Obsidian wishlist is nearly complete.
Thank you @NothingIsLost!


Wow, thanks for mentioning this @B-C and thank you so, so much @NothingIsLost, this is fantastic!

I did notice that dragging things around folders doesn’t work perfectly, presumably because Obsidian thinks you’re trying to drag the item into the folders and not between them, probably a difficult issue to resolve. I found it much easier to open data.json and rearrange them manually there before re-opening the vault.


Yeah, dragging items in-between folders isn’t possible currently. I freeze folders in place while dragging because if I don’t, you wouldn’t be able to place items into a folder… the folder would keep slipping out from underneath your cursor :slight_smile: I’m still considering options for improving that and open to any ideas.


Maybe a separate edit modal that brings up a list of items that you can drag up and down completely separate from the file explorer and it’s associated functionality? It’s probably a lot more work but I can’t think of any more elegant solution.

It would also be nice to be able to retain custom sorting but not make it editable, it’s easy to mess up, especially on mobile.

1 Like

Thanks for the input. I’m thinking of adding an icon in the file explorer header bar that lets you toggle the ability to “drag to rearrange”. This will solve my “can’t drop items into folders” problem and your “it’s easy to accidentally rearrange stuff” problem.


The new drag functionality can now be tested in the latest release

It also adds file explorer filtering:


This is absolutely fantastic, it’s a lot easier to work with this way! Thank you for the amazing plugin, you’ve made a really big difference to my workflow!

Oh wow, you even added regex support to the filtering, nice!

Thank you for this, can’t wait for full release. Amazing work, this helps a lot.

+1 that custom sorts on the folder should be a core plugin. this would make a big difference to file management.


This is THE Crucial Plugin for me.
Because I create Note headings first and keep filling them as and when I get time/discover more information. Hence my notes are often not in order of priority , rather then at the time I learnt/discovered them.

I signed up just to give this a +1. I’ve switched over to Obsidian a couple of weeks ago and have been loving it so far! Having the ability to order my notes freely is the only missing thing for me. I hope the development team puts this high up in their priority list.

1 Like

@NothingIsLost ~

Thank you so much for creating this plugin! The features look absolutely GREAT! And, the video you provided is very helpful. :slight_smile:

However, I’ve run into what is probably a newbie issue:

  • After installing the BRAT plugin and the Bartender plugin, and then closing and reopening Obsidian, the header bar for controlling this plugin is still not visible in my file explorer.
  • Q: Is there a display or preference setting I need to adjust to make the plugin controls visible?

Thanks in advance for your help.

1 Like

I didn’t need to adjust any settings to have it displayed, have you tried going back to the default theme to see if it’s available there?

Any chance you might consider adding a way to hide a folder from the File Explorer? I’m guessing I can find the selector and display: none but it seems like a feature that would be well aligned with Obsidian Bartender.

Thanks for the suggestion, @ChristinWhite. I’m already using the default theme, so apparently something else is causing the issue with the missing header bar . . . .