Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Folder Sort Rules

wepeewepee380 downloads

Define custom sort orders per folder, overriding the global file explorer sorting with independent rules for files and subfolders.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Define custom sort orders per folder in your Obsidian vault. Override the global file explorer sorting with independent rules for files and subfolders.

Features

  • Per-folder sort rules — Set a different sort order for any folder in your vault.
  • Independent file/folder sorting — Choose separate sort orders for files and subfolders within the same folder.
  • Recursive rules — A rule can apply to all nested subfolders unless overridden by a more specific rule.
  • Manual drag & drop — Reorder files or subfolders manually via drag and drop in the file explorer.
  • 7 sort orders — Name (A→Z), Name (Z→A), Modified time (new→old), Modified time (old→new), Created time (new→old), Created time (old→new), Manual.

How to use

  1. Go to Settings → Folder Sort Rules.
  2. Click + Add rule and select a folder from your vault.
  3. Choose the desired sort order for files and subfolders independently.
  4. Toggle Apply recursively to extend the rule to nested subfolders.
  5. If you select Manual (drag & drop), you can reorder items directly in the file explorer.

Rule resolution

When displaying a folder, the plugin resolves which rule to apply:

  1. Exact match — If a rule exists for this exact folder, use it.
  2. Recursive parent — Walk up the folder tree and use the first parent rule that has recursion enabled.
  3. Default — If no rule matches, use Obsidian's global sort order.

The most specific rule always wins.

Installation

From Obsidian Community Plugins

  1. Open Settings → Community plugins → Browse.
  2. Search for Folder Sort Rules.
  3. Click Install, then Enable.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create a folder folder-sort-rules inside your vault's .obsidian/plugins/ directory.
  3. Copy the downloaded files into that folder.
  4. Enable the plugin in Settings → Community plugins.

Development

npm install
npm run dev    # watch mode
npm run build  # production build

License

MIT

82%
HealthExcellent
ReviewCaution
About
Define custom sort orders per folder in your vault and override the global file explorer sorting. Set independent sort orders for files and subfolders, apply rules recursively, choose from seven orders (name, modified, created, or manual), and reorder items via drag-and-drop.
FoldersFilesSidebar
Details
Current version
1.0.0
Last updated
2 months ago
Created
2 months ago
Updates
1 release
Downloads
380
Compatible with
Obsidian 1.12.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
wepeewepee
GitHubwepee
  1. Community
  2. Plugins
  3. Folders
  4. Folder Sort Rules

Related plugins

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Manual Sorting

Drag'n'Drop sorting within file explorer.

Trash Explorer

Restore and delete files from the Obsidian .trash folder.

File Explorer++

Hide and pin files and folders in the file explorer using custom filters.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Recent Files

Display a list of recently opened files.

Novel word count

Display a word count, page count, creation date, or other statistics for each file, folder and vault in the File Explorer pane.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.