sort()
The sort() method sort an array by values using a function or default sort function
Last updated
The sort() method sort an array by values using a function or default sort function
Last updated
$callback
A function to compare element for sort, taking two arguments:
$a
The comparison target A
$b
The comparison target BDefault is
NULL
, If is null, Sort by default sort function.
A sorted array.