Ds\Map::sort

Ds\Map::sort

(PECL ds >= 1.0.0)

Ds\Map::sort Sorts the map in-place by value.

Description

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

Sorts the map in-place by value, 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 secon