order

fun order(attribute: String, sortDirection: SortDirection = SortDirection.ASC): Scope<R>(source)

Order the resources by an attribute

Parameters

attribute

The attribute to order by

sortDirection

The direction to order in