sorted

abstract fun sorted(comparator: Comparator<EntityType>): QueryType

Orders the query by the specified comparator. This query is not executed at this point.

Return

this query

Parameters

comparator

the comparator to order the query by