Ds\Set::sorted
Ds\Set::sorted
(PECL ds >= 1.0.0)
Ds\Set::sorted — Returns a sorted copy.
Description
public Ds\Set Ds\Set::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 second. Note th