sortedBy
fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.sortedBy(vararg selectors: (T) -> OrderByExpression): EntitySequence<E, T>(source)
Return a sequence sorting elements by multiple columns, in ascending or descending order. For example, sortedBy({ it.col1.asc() }, { it.col2.desc() })
.
The operation is intermediate.
inline fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.sortedBy(selector: (T) -> OrderByExpression): EntitySequence<E, T>(source)
Return a sequence sorting elements by a column, in ascending or descending order. For example, sortedBy { it.col.asc() }
The operation is intermediate.
inline fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.sortedBy(selector: (T) -> ColumnDeclaring<*>): EntitySequence<E, T>(source)
Return a sequence sorting elements by the specific column in ascending order.
The operation is intermediate.