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

[5.x] Ensure structured collections are ordered by order by default #9704

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request tweaks the logic in the Collection@sortField method so that by default, "structured collections" are ordered using the order field, instead of the title field.

We already default "orderable collections" (so, ordered collections where max depth = 1) to order, so that makes it true of "structured collections" too.

Closes #9429.
Related: #8810

@jasonvarga
Copy link
Member

When we document this in the upgrade guide, we should mention that it'll affect the order in the CP listing (table mode) too. It was previously sorted by title, but now it mimics the page tree view order like this:

CleanShot 2024-03-11 at 11 51 41

@jasonvarga jasonvarga merged commit 9cb3ab1 into master Mar 11, 2024
31 checks passed
@jasonvarga jasonvarga deleted the ensure-default-sort-for-structured-collection-is-order branch March 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants