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

Error with order by ; sorting main results by relation value #303

Open
mrelliot69 opened this issue Apr 20, 2023 · 0 comments
Open

Error with order by ; sorting main results by relation value #303

mrelliot69 opened this issue Apr 20, 2023 · 0 comments

Comments

@mrelliot69
Copy link

I'm having a problem sorting the results with a column from my has_many relations;
Already check the code, and found something's that i don't understand,

Why the order_by variable is reseted on the loop if after the loop is where the result will be sorted using the sort function?
On the _build_sorter function how it works, because if the result have more than one position the arrayA will have multiples position, therefore the arraya[orderby] will not work, since is a multidimensional array

image
image
image

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

No branches or pull requests

1 participant