Ability to sort different folders differently

I like the sort order feature, but not as a universal function, or at least, not a solely universal one.

Maybe something like a left-click menu option could suffice.

26 Likes

I have the same request. I want alphabetical order everywhere except my folder with daily notes (which are named YYYY-MM-DD). Sorting by most recent in certain folders would also be very useful to me.

6 Likes

+1 This would be super useful to me as well.

1 Like

Yes! Getting the daily notes sorted with the most recent on top would be awesome!

4 Likes

+1. Sort order by folder would be very useful. Primary use for me would be to sort time based notes (daily notes, meeting notes etc) in descending order & other folders in ascending order.

1 Like

Same, this would be great.

+1. This is a big annoyance for me when trying to keep Daily notes organized. Even just the ability to custom sort the Dailies folder independently would be enough.

Still not resolved yet?
Also see Per folder sort settings?

1 Like

+1. I like the ability to sort by last modified for general ntoes, but would be much easier to sort alphabetically for the few folders I use.

Still no option?

Not that I know of. I haven’t been around for a while, so I don’t know if anything has been done, though.

Hi,

scanning older threads on forum I came across this one.
If you still need the described custom ordering feature(s), please take a look at the plugin below. I’ve created the plugin for my personal needs. After making it more mature on my personal field I’ve exposed it via github to others. Lightweight and non intrusive.

As I understand, you need to set a specific sort order for selected folder(s). If I get the intention right, the plugin could be a perfect fit

2 Likes

Loved it! Thank you.

Having folder-specific sort options would be really useful! In larger vaults, being able to sort daily notes by date while keeping other folders alphabetical would make finding things way faster. This would add so much flexibility to organizing different types of notes without needing extra workarounds. It’s a small change that would make a big difference!

1 Like

Is there a way to have the plugin sort the daily notes by date ?
(not creation date or last modified, but where the name is a date in DD-MM-YYYY format ?) I had a look in the ‘Basic automatic sorting methods’ in the documentation and couldn’t find anything that did that.
Thanks!

Hi @PhJ,

yes, to sort notes (files) by date please use one of date patterns in the sorting specification. Assuming that the note name comprises only the date in DD-MM-YYYY format, it is sufficient to specify:

---
sorting-spec: |
  target-folder: Daily notes
  \[dd-mm-yyyy]
    > a-z
---

The date patterns can be used with alphabetical sorting methods to get the newest or the oldest items in the top: > a-z order pushes the most recent dates first, < a-z does the opposite.

For full clarity, the line:

  \[dd-mm-yyyy]

of the spec acts as a matcher against file names and at the same time extractor of the date part to allow sorting order to use the actual date value, not the note title treated as a text.

BTW the support for more date formats has been added to the plugin recently

2 Likes