PHP Interface Webmozart\KeyValueStore\Api\SortableStore

In addition of the properties of a classical store, a sortable store has the ability to sort its values by its keys.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Titouan Galopin ([email protected])
Inheritance: extends Webmozart\KeyValueStore\Api\KeyValueStore
Exibir arquivo Open project: webmozart/key-value-store

Public Methods

Method Description
sort ( integer $flags = SORT_REGULAR ) Sort the store by its keys.

Method Details

sort() public method

The store values will be arranged from lowest to highest when this function has completed. This method accepts an optional second parameter that may be used to modify the sorting behavior using the standard sort flags of PHP.
See also: http://php.net/manual/en/function.sort.php
public sort ( integer $flags = SORT_REGULAR )
$flags integer Sorting type flags (from the standard PHP sort flags).