-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Allow fields to be sorted by orderby … #2350
Conversation
Two separate but connected issues. First if orderby is passed then the $data array is never populated. Then looping through $ids will always give it results sorted by priority in the relationships field (data returned by lookup_related_items) Fixes pods-framework#2277
I'm also not sure why $items isn't just returned or copied over, but with some of the weird complexity in pods there might be a reason. |
@sc0ttkclark Do you find any of the concerns he raises to be valid? If this works (I will test) I think this and a few other little things could be worth a very small point release. People want what this fixes all the time in forums and the work around that I recommend sucks. |
When I checkout this branch I get |
Allow fields to be sorted by orderby & fix #2277
Sounds good |
3.0-unstable version of pods-framework#2350
Two separate but connected issues. First if orderby is passed then the $data array is
never populated. Then looping through $ids will always give it results sorted by priority
in the relationships field (data returned by lookup_related_items)
Fixes #2277