ArraySort

Array sort

package

ArraySort

subpackage

Utility

Methods

Get link to cached value $from $subject

_getCache(mixed $from, mixed $subject) : mixed
static

Arguments

$from

mixed

$subject

mixed

Response

mixed

Extract value from subject by path/attribute/method/callable

_getValue(string|callable $from, mixed $subject) : mixed
static
throws

Arguments

$from

string|callable

$subject

mixed

Response

mixed

Normalize params

_normalizeParams(array &$params) : array
static

Arguments

$params

array

Response

array

Add $value $from $subject into cache

_setCache(mixed $from, mixed $subject, mixed $value) 
static

Arguments

$from

mixed

$subject

mixed

$value

mixed

Sort array by multiple fields

multisort(array $array,  $params) 
static

Arguments

$array

array

Array to sort

$params

associative array key is field to sort by, value is desc or asc you can yse Set (Hash) notation for fields

Properties

Cache for sort fields

_cache : array
static
var

Type(s)

array