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 consistent order of get_content results #11429

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

daun
Copy link
Contributor

@daun daun commented Feb 7, 2025

Use an OrderedQueryBuilder in the get_content tag to make sure the order of results matches the order of the entry IDs that were passed in. Currently, the order is arbitrary.

Since the OrderedQueryBuilder only supports sorting by id, we can't apply this when urls are passed in. Happy to also make the necessary adjustments to the query builder class if that's something you're willing to support.

@jasonvarga jasonvarga merged commit d65cbcd into statamic:5.x Feb 17, 2025
19 checks passed
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