TimeTrex API Manual

Sort
in package

Table of Contents

arrayMultiSort()  : array<string|int, mixed>|bool
Usage: $arr2 = Sort::arrayMultiSort($arr1, array( 'name' => array(SORT_DESC, SORT_REGULAR), 'cat' => SORT_ASC ) ); Case insensitive sorting.
multiSort()  : mixed

Methods

arrayMultiSort()

Usage: $arr2 = Sort::arrayMultiSort($arr1, array( 'name' => array(SORT_DESC, SORT_REGULAR), 'cat' => SORT_ASC ) ); Case insensitive sorting.

public static arrayMultiSort( $array,  $cols) : array<string|int, mixed>|bool
Parameters
$array :
$cols :
Return values
array<string|int, mixed>|bool

multiSort()

public static multiSort( $data,  $col1[, null $col2 = null ][, string $col1_order = 'ASC' ][, string $col2_order = 'ASC' ]) : mixed
Parameters
$data :
$col1 :
$col2 : null = null
$col1_order : string = 'ASC'
$col2_order : string = 'ASC'
Return values
mixed

Search results