sort
..Root.algorithm.iterator.sort
Sorts the elements in the range [first, last) using order described by comparison.
Time comlexity: O(n*log(n))
Parameters: Iterator
first, Iterator
last, Callable
comparison
Return value: reference to last
Object
, Callable
, BlockCallable
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);