Skip to content

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.

Signed-off-by: Philipp Daun <post@philippdaun.net>
@jasonvarga jasonvarga merged commit d65cbcd into statamic:5.x Feb 17, 2025
19 checks passed
@daun daun deleted the feature/get-content-result-order branch July 8, 2025 14:25
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