sortedWith
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
BooleanArray
.
sortedWith
(
comparator
:
Comparator
<
in
Boolean
>
)
:
List
<
Boolean
>
(source)
Returns a list of all elements sorted according to the specified comparator .