-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Sort does nothing on aliased entries #3194
Comments
Doesn't seem to work outside the partial either. Can you confirm that? I think the partial isn't thee issue, but rather the |
I've got this fixed in #3363. Just needs a team review. |
yes it looks like this effects more than just partials |
I have a product entry (products collection) which has multiple reviews (linked entries). Now when i'm looping: Everything works fine. I would like to sort reviews by date {{ reviews sort="date" }} but that it not working. I posted the above on Discord, this is probably the same bug? |
Try manually applying the change in #3363 to see if it solves your issue. |
@jasonvarga tested this and no changes for the ordering. I modified my code to match @radovanobal
changing the sort="anything" doesnt change ordering. If i leave it only {{ items }}, then it seems to use manual orderable order (even its turned off) My product.md has these:
Not sure if this is related to this problem, but if I add Statamic 3.0.46 |
@Hesesses and the reason the fix wasn't working is because i was testing with the collections tag and you had Entries fieldtype data. The PR has been updated to work with your use case now too. https://github.com/statamic/cms/pull/3363/files |
Bug Description
If I pass a list of entries to the partial as
and then try to sort this as
Nothing happens the list gets printed in the same order as it did before.
How to Reproduce
Create a template that has a partial and pass a set of entries to the partial as a variable, then try and sort the set inside the partial
Extra Detail
template:
partial:
Environment
Statamic version: 3.0.40 Pro
PHP version: 7.4.9
Fresh install from
statamic/statamic
The text was updated successfully, but these errors were encountered: