Sorts a multi-dimensional array by a certain column
static public sort ( array $array, string $field, string $direction = 'desc', const $method = SORT_REGULAR ) : array | ||
$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. |
return | array | The sorted array |