d125v17 / multisort
Sort flat arrays / arrays of associative arrays, arrays of objects
1.0.0
2018-05-25 09:15 UTC
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2024-09-29 05:42:01 UTC
README
Multisorter throw merge
to sort flat arrays, array of objects and arrays of arays
usage:
$sort = new Multisort($field, $type);
$sorted = $sort->mergeSort($array);
where
-
$field = false for flat arrays;
-
$field = name_of_property for arrays of objects
-
$field = array_key for arrays of associative arrays
-
$sort = 'asc' or 'desc'