# orderBy

fun orderBy(column: Expression<*>, order: SortOrder = SortOrder.ASC): WindowFunctionDefinition<T>

Defines sorting order by column and order in which the rows of a partition are processed by the window function.

fun orderBy(vararg order: Pair<Expression<*>, SortOrder>): WindowFunctionDefinition<T>

Defines sorting order by column and order pairs order in which the rows of a partition are processed by the window function.