sortAscending

Sorts an array, in ascending order, containing floating point, or integers

bool
sortAscending
(
T
)
(
ref T[] array
)

Return Value

Type: bool

true if any sorting was done

Examples

int[] array = [0, 2,5,73,2,4,2];
array.sortAscending;
assert(array == [0, 2, 2, 2, 4, 5, 73]);

Meta