sort

fun sort(order: Ordering, vararg additionalOrders: Ordering): Pipeline(source)

Sorts the documents by order, then by additionalOrders.