Sort the array sing the given callback.
public sortBy ( callable $callback, string $key = null, integer $options = SORT_REGULAR, boolean $isDescending = false ) : array | ||
$callback | callable | Callback should be a function with the following signature: ```php function($key, $value) { // return $processedValue; } ``` |
$key | string | Element to sort using "dot" notation. You can to escape a dot in a key surrendering with brackets: "[.]" |
$options | integer | See sort_flags at http://php.net/manual/es/function.sort.php |
$isDescending | boolean | |
return | array |