Skip to content
Discussion options

You must be logged in to vote

Hi @floerio

the approach is to group the files based on their name, matching a pattern or not.
Technically, this can be simplified even more by defining only the first group, 'items (files, subfolders) which name starts with a date'. Items not matching will be put below the matching ones.

Step 1: define the first group of items

---
sorting-spec: |
  \[yyyy-mm-dd] ...
---

this will put the files and subfolders (with names starting with dates in the specified format) first, the other items will follow.
No explicit sorting specified implies the default one, which is ascending alphabetical.

Step 2: Specify the desired sorting order for the first group.

---
sorting-spec: |
  \[yyyy-mm-dd] ...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SebastianMC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants