sort

fun sort(query: String, direction: DittoSortDirection): DittoPendingCollectionsOperation

Sort the collections based on a property of the collection.

Return

a DittoPendingCollectionsOperation that you can chain further function calls to.

Parameters

query

the query specifies the logic to be used when sorting the collections.

direction

specify whether you want the sorting order to be ascending or descending.