Ds\Sequence::sort

Ds\Sequence::sort

(PECL ds >= 1.0.0)

Ds\Sequence::sort Sorts the sequence in-place.

Description

abstract public void Ds\Sequence::sort ([ callable $comparator ] )

Sorts the sequence in-place, 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,