Currently, you can sort by last modified, but my content doesn't have that field.
The file list shows the 'date' field that I do have in my content, but I can't sort files by it.
Currently, you can sort by last modified, but my content doesn't have that field.
The file list shows the 'date' field that I do have in my content, but I can't sort files by it.

<!-- github-sync-id:1048942690 -->
This can be linked to #76 as I want to allow open sorting based on anything you define.
Currently, the last modified sorting is done based on the file stats itself, not from a metadata field in the file,
This can be linked to #76 as I want to allow open sorting based on anything you define.
Currently, the last modified sorting is done based on the file stats itself, not from a metadata field in the file,
<!-- github-comment-id:964958518 -->
Support for custom sorting will be added in `5.5.0`. You can already test it out in the latest beta. For this, a new setting has been added. More information about it can be found here: https://beta.frontmatter.codes/docs/settings#frontmatter.content.sorting
```
"frontMatter.content.sorting": [
{
"title": "Date (asc)",
"name": "date",
"order": "asc",
"type": "date"
},
{
"title": "Date (desc)",
"name": "date",
"order": "desc",
"type": "date"
}
]
```
<!-- github-comment-id:965254942 -->
It works as expected in beta. One preference I would have is to find a way to preserve the last chosen sort method, so that when you go back to the Dashboard, the same sort as last time is applied.
It works as expected in beta. One preference I would have is to find a way to preserve the last chosen sort method, so that when you go back to the Dashboard, the same sort as last time is applied.
<!-- github-comment-id:966871425 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently, you can sort by last modified, but my content doesn't have that field.
The file list shows the 'date' field that I do have in my content, but I can't sort files by it.
This can be linked to #76 as I want to allow open sorting based on anything you define.
Currently, the last modified sorting is done based on the file stats itself, not from a metadata field in the file,
Support for custom sorting will be added in
5.5.0. You can already test it out in the latest beta. For this, a new setting has been added. More information about it can be found here: https://beta.frontmatter.codes/docs/settings#frontmatter.content.sortingIt works as expected in beta. One preference I would have is to find a way to preserve the last chosen sort method, so that when you go back to the Dashboard, the same sort as last time is applied.
Again, a great suggestion!
@bwklein sorting state is now kept. So when opening the dashboard again, it will use the last used selection.