Sorter
in package
Sorter Class CRM
Tags
Table of Contents
Properties
- $backwards : bool
- Backwards
- $numeric : bool
- Numeric
- $sort_fields : string
- Sort fields
Methods
- numericCompare() : int
- compare the numeric values
- sort() : array<string|int, mixed>
- sort function
- stringCompare() : int
- Compare the String
Properties
$backwards
Backwards
public
bool
$backwards
= false
Tags
$numeric
Numeric
public
bool
$numeric
= false
Tags
$sort_fields
Sort fields
public
string
$sort_fields
Tags
Methods
numericCompare()
compare the numeric values
public
numericCompare(array<string|int, mixed> $a, array<string|int, mixed> $b) : int
Parameters
- $a : array<string|int, mixed>
- $b : array<string|int, mixed>
Return values
intsort()
sort function
public
sort() : array<string|int, mixed>
Return values
array<string|int, mixed>stringCompare()
Compare the String
public
stringCompare(array<string|int, mixed> $a, array<string|int, mixed> $b) : int
Parameters
- $a : array<string|int, mixed>
- $b : array<string|int, mixed>