Function __global->merge_sort
Definitions
sources/global3.php
- Do a user sort, preserving order where reordering not needed. Based on a PHP manual comment at http://php.net/manual/en/function.usort.php.Roughly equivalent to PHP's uasort.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$array | array | Yes | No | required parameter | N/A | N/A | Sort array |
| $cmp_function | mixed | No | No | cms_mb_strcmp | N/A | N/A | Comparison function |
Preview
Code (PHP)
/**
* Do a user sort, preserving order where reordering not needed. Based on a PHP manual comment at http://php.net/manual/en/function.usort.php.Roughly equivalent to PHP's uasort.
*
* @param array $array Sort array
* @param mixed $cmp_function Comparison function
*/
function merge_sort(array &$array, $cmp_function = 'cms_mb_strcmp')
* Do a user sort, preserving order where reordering not needed. Based on a PHP manual comment at http://php.net/manual/en/function.usort.php.Roughly equivalent to PHP's uasort.
*
* @param array $array Sort array
* @param mixed $cmp_function Comparison function
*/
function merge_sort(array &$array, $cmp_function = 'cms_mb_strcmp')

