Skip to content

Custom sorting based on YAML frontmatter creation date? #179

Answered by SebastianMC
bloominburges asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @thomas-bouvier,

in the scenario which you described you only need to remove the quotation marks and you should be good:

---
sorting-spec: |
  < a-z by-metadata: Last updated at
---

The metadata values expressed using ISO date format of YYYY-MM-DD can be used directly for sorting: treating them as plain text for sorting gives correct result.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
3 participants
Converted from issue

This discussion was converted from issue #177 on December 11, 2024 21:26.