a::sort
Sorts a multi-dimensional array by a certain column
a::sort($array, $field, $direction = 'desc', $method = 0)
Parameters
- $array (array)
- The source array
- $field (string)
- The name of the column
- $direction (string)
- desc (descending) or asc (ascending)
- $method (\const)
- A PHP sort method flag or 'natural' for natural sorting, which is not supported in PHP by sort flags
Return values
- array
- The sorted array