Function sortMultiArray
multidimensional array column sort
If the system's PHP has the native intl extension and its Collator class available the sorting is locale aware (true natural order) and always case sensitive if $natsort is set to true
Package: core\functions\functions-main
Author: redoc (http://codingforums.com/showthread.php?t=71904)
Located at functions.php
Author: redoc (http://codingforums.com/showthread.php?t=71904)
Located at functions.php
array |
$array |
The multidimensional array to be sorted |
mixed |
$index |
Which key(s) should be sorted by |
string |
$descending = false |
true for descending sortorder |
boolean |
$natsort = true |
If natural order should be used. If available sorting will be locale aware. |
boolean |
$case_sensitive = false |
If the sort should be case sensitive. Note if $natsort is true and locale aware sorting is available sorting is always case sensitive |
boolean |
$preservekeys = false |
Default false, |
array |
$remove_criteria = array() |
Array of indices to remove. |
array
|
array |