sortAscendingIndex

Sorts an array in ascending order

sortAscendingIndex
(
T
)
(
ref T[] array
)

Return Value

Type: uinteger[]

array containing indexes of original array's elements in the order they are in now

Examples

int[] array = [5,4,9,3,6,2,1];
uinteger[] indexes = array.sortAscendingIndex;
assert(array == [1,2,3,4,5,6,9]);
assert(indexes == [6,5,3,1,0,4,2]);

Meta