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
Sorting preference is not taken into account when getting content by taxonomy #982
Comments
Thanks! Looks like you're right. And I think your assumptions about where the changes should go are spot on. Should I change this manually, or will you make a PR, for some github-karma? ;-) |
Hi, Not sure this what you are talking about, but we used {% for related in relatedrecords|order('title')%} Which is working pretty good |
@infodebrid What you mention works fine on a separate page. What @flrvt means is an overview-page like |
I was hesitant creating a pull request because I'm a rookie in Git ;). But give me a moment to figure it out, and i'll do it asap! |
Sure! Check out this video, for a quick tutorial. Let me know if you get stuck, I'll gladly help! :-) |
@flrvt I have done plenty of stupid Git stuff-ups lately... I am also here to help where I can (just another member a good community) |
Pull request done! |
In Frontend.php on line 239 the getContentByTaxonomy() function is called including the parameter 'order' like so:
In Storage.php this parameter is not taken into account and no sorting is done.
Not so familiar with the code, but this may fix it:
The text was updated successfully, but these errors were encountered: