Ds\Deque::sorted
Ds\Deque::sorted
(PECL ds >= 1.0.0)
Ds\Deque::sorted — Returns a sorted copy.
Description
public Ds\Deque Ds\Deque::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 to, or greater than the sec