Trait

TRex\Iterator\TIteratorSorter

trait TIteratorSorter

Class TIteratorSorter Implements IIteratorSorter.

Methods

IIterator getIterator()

Needs IIterator.

Objects reindex()

See IIteratorSorter.

Objects sort(SortType $type = null, callable|int $option = SORT_NATURAL)

See IIteratorSorter.

Objects reverse(bool $areKeysPreserved = true)

See IIteratorSorter.

Details

at line 20
abstract public IIterator getIterator()

Needs IIterator.

Return Value

IIterator

at line 27
public Objects reindex()

See IIteratorSorter.

Return Value

Objects

at line 39
public Objects sort(SortType $type = null, callable|int $option = SORT_NATURAL)

See IIteratorSorter.

Parameters

SortType $type
callable|int $option

Return Value

Objects

at line 57
public Objects reverse(bool $areKeysPreserved = true)

See IIteratorSorter.

Parameters

bool $areKeysPreserved

Return Value

Objects