Issue: Content view sorting for Modified Date not working as expected #752

Closed
opened 2026-10-05 03:03:48 +02:00 by adam · 0 comments
Owner

Describe the bug
When sorting for modified date it seems like it uses the modified date of the markdown files instead of the defined modified date inside frontmatter.

My date settings are:

{
          "title": "Last updated date",
          "name": "updatedDate",
          "type": "datetime",
          "default": "{{now}}",
          "dateFormat": "dd.MM.yyyy HH:mm",
          "isModifiedDate": true
},

To reproduce, please use the above setting and change the modified date of some files randomly to different dates.
After that try to sort them by modified date in content view. You will see that they always sort by the actual date time of the order you have saved the markdown files, not by the defined frontmatter updatedDate.

**Describe the bug** When sorting for modified date it seems like it uses the modified date of the markdown files instead of the defined modified date inside frontmatter. My date settings are: ``` { "title": "Last updated date", "name": "updatedDate", "type": "datetime", "default": "{{now}}", "dateFormat": "dd.MM.yyyy HH:mm", "isModifiedDate": true }, ``` To reproduce, please use the above setting and change the modified date of some files randomly to different dates. After that try to sort them by modified date in content view. You will see that they always sort by the actual date time of the order you have saved the markdown files, not by the defined frontmatter updatedDate. <!-- github-sync-id:3317079004 -->
adam closed this issue 2026-10-05 03:03:48 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#752