Easypt

sort

..Root.algorithm.iterator.sort

Sorts the elements in the range [first, last) using order described by comparison.

Time comlexity: O(n*log(n))

Child of:

iterator

Signatures:

Object, Callable, BlockCallable

Example:

import("algorithm");

auto a.=(Array());
a.pushBack("w", "a", "z", "f", "c", "d");
algorithm.iterator.sort(a.begin(), a.end(), {
    return(args[0].get().<(args[1].get()));
});
log(a);