sorted With
Returns a list of all elements sorted according to the specified comparator.
The sort is stable. It means that equal elements preserve their order relative to each other after sorting.
fun DoubleArray.sortedWith(comparator: Comparator<in Double>): List<Double>
Content copied to clipboard
fun BooleanArray.sortedWith(comparator: Comparator<in Boolean>): List<Boolean>
Content copied to clipboard
Returns a list of all elements sorted according to the specified comparator.