sort

Allow static arrays to be sorted without [].

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

Members

Functions

sort
auto sort(Arr arr)
Undocumented in source. Be warned that the author may not have intended to support it.
sort
auto sort(Range r)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

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

See Also

Meta