indexSort

Sort by using an index to remap the elements.

TODO This is inefficient but gets the job done.

@safe
indexSort
(
alias Pred
T
)
(
T[] arr
)

Parameters

Pred

a func that takes arguments (Slice, indexA, indexB) and compares.

Meta