Product Site

5.3.4.15. sortWith

Sorts the collection of items into ascending order using an algorithm that is not guaranteed to be stable, and returns the sorted collection. Ordering of elements is determined using the comparator argument. See Section 5.3.19, “Sorting Ordered Collections” for details.