Skip to content

Sort by column which is aggregate function #1100

@gneb

Description

@gneb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions