decaporg / decaporg/decap-cms

sortableFields should have default sorting options

Open
#3,715 9 comments 13 reactions 0 assignees View on GitHub
area: ui/collection type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

Whenever I log into Netlify CMS, I have to always do the same operation so that the entries of a folder collection is displayed the way I'd like.

**Describe the solution you'd like**

I'd like if we could have an option in the `sortableFields` config so that we could specify a default order and display type. So for instance we could specify something like:

```yml
sortableFields:
display: "grid"
key: "commit_date"
type: "desc"
fields:
- "commit_date"
- "author"
- "title"
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.