Ds\Deque::sort

Ds\Deque::sort

(PECL ds >= 1.0.0)

Ds\Deque::sort Sorts the deque in-place.

Description

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

Sorts the deque 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, or greater than the second. N