Skip to content

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

@mrelliot69

Description

@mrelliot69

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions