sort

Allow static arrays to be sorted without [].

template sort(alias less = `a < b`, SwapStrategy ss = SwapStrategy.unstable)
sort
(
Arr
)
(
ref Arr arr
)
if (
__traits(isStaticArray, Arr)
)

Examples

int[5] a = [ 9, 5, 1, 7, 3 ];
int[]  b = [ 4, 2, 1, 6, 3 ];
sort(a);
sort(b);

See Also

Meta