function msortv($list, $method)libphutil Technical Documentation (Core Utilities)
function msortv($list, $method)
libphutil Technical Documentation (Core Utilities)
Sort a list of objects by a sort vector.
This sort is stable, well-behaved, and more efficient than usort().
Parameters
list | $list | List of objects to sort. |
string | $method | Name of a method to call on each object. The method must return a @{class:PhutilSortVector}. |
Return
list | Objects ordered by the vectors. |
- Defined
- src/utils/utils.php:435