Ds\Sequence::sorted
Ds\Sequence::sorted
(PECL ds >= 1.0.0)
Ds\Sequence::sorted — Returns a sorted copy.
Description
abstract public Ds\Sequence Ds\Sequence::sorted ([ callable $comparator ] )
Returns a sorted copy, using an optional comparator
function.
Parameters
-
comparator
-
The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal