Ds\Vector::sorted

Ds\Vector::sorted

(PECL ds >= 1.0.0)

Ds\Vector::sortedReturns a sorted copy.

Description

public Ds\Vector Ds\Vector::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 t