d125v17 / multisort
Sort flat arrays / arrays of associative arrays, arrays of objects
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/d125v17/multisort
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-10-26 11:18:27 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'