indicesSorted

fun <V : Comparable<V>> Buffer<V>.indicesSorted(): IntArray

Return a new array filled with buffer indices. Indices order is defined by sorting associated buffer value. This feature allows sorting buffer values without reordering its content.

Return

Buffer indices, sorted by associated value.

Sources

Link copied to clipboard