propelorm/Propel

Sort by column which is aggregate function

gneb opened this issue · 0 comments

gneb commented

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