sort

fun sort(compareFunction: Comparator)(source)

Sort the items in the queue in-place.

Parameters

compareFunction

A function that defines the sort order.

See also