Skip to content

Sorting by frontmatter property #114

@Whipbread

Description

@Whipbread

Please consider sponsoring the project when submitting feature requests.

Is your feature request related to a problem? Please describe.
Currently, sorting relies on filesystem metadata such as created or modified dates. This becomes unreliable when Markdown files are copied or synchronized between different systems, backups, or tools. In those situations the filesystem dates are changed automatically, and users usually have no control over them. As a result, the intended chronological order of notes or documents is lost.

Describe the solution you'd like
I would like the ability to sort items based on a custom frontmatter property, for example:

date: YYYY-MM-DD
created: YYYY-MM-DD

Describe alternatives you've considered
The main workaround is relying on filenames (for example YYYY-MM-DD-title.md) or continuing to use filesystem dates. However, both approaches have downsides. Filename-based ordering forces a specific naming structure, and filesystem metadata can change when files are copied, restored from backups, or synced across devices.

Additional context
Many users already maintain a date/created field in frontmatter for exactly this reason. Is this something you will consider?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions