Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Default Sort of Blog Posts in CMS to Most Recent At Top #40

Closed
pkscout opened this issue Dec 30, 2020 · 4 comments
Closed

Set Default Sort of Blog Posts in CMS to Most Recent At Top #40

pkscout opened this issue Dec 30, 2020 · 4 comments
Labels
backend issue is related to backend/coding

Comments

@pkscout
Copy link
Member

pkscout commented Dec 30, 2020

As I'm testing, I've noticed that when I load the Netlify CMS that the blog posts default to sorted alphabetically. To get the most recent posts I have to sort by Publish Date and then reverse that order (because it defaults to oldest first). So it takes at least two sorts to get to the recent posts. That's not ideal, and I'd like to see if there is a setting option to set a default sort order.

@pkscout pkscout added the backend issue is related to backend/coding label Dec 30, 2020
@razzeee
Copy link
Member

razzeee commented Dec 30, 2020

Are you sorting in graphql?

@pkscout
Copy link
Member Author

pkscout commented Dec 30, 2020

This is in the actual Netlify content editor, not the display of posts. On the display, yes, sorting is done in GraphQL.

@pkscout pkscout changed the title Sert Default Sort of Blog Posts in CMS to Most Recent At Top Set Default Sort of Blog Posts in CMS to Most Recent At Top Jan 1, 2021
@pkscout
Copy link
Member Author

pkscout commented Jan 19, 2021

I can't quite tell yet, but this might not be possible. I did find a closed Github issue about sort order, but it implies that as of March 2020 the Netlify CMS should default to showing the most recently updated posts first (using Git commits). But our install isn't doing that.

decaporg/decap-cms#54 (comment)

@pkscout
Copy link
Member Author

pkscout commented Feb 28, 2021

Good news. Apparently the production CMS code got updated, and reverse chronological is now the default order. It takes a bit longer to load the list of posts, but I think it's worth it. I'm going to close this.

@pkscout pkscout closed this as completed Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend issue is related to backend/coding
Projects
None yet
Development

No branches or pull requests

2 participants