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

Sort by column which is aggregate function #1100

Open
gneb opened this issue Oct 11, 2023 · 0 comments
Open

Sort by column which is aggregate function #1100

gneb opened this issue Oct 11, 2023 · 0 comments

Comments

@gneb
Copy link

gneb commented Oct 11, 2023

if i have this column

->withColumn('MAX(column.status)', 'status')

how can i able to sort by this

->orderBy("MAX(column.status)", "ASC")

it does not include MAX function in sort so sql does not work

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