function msortv($list, $method)Arcanist Technical Documentation ()
function msortv($list, $method)
Arcanist Technical Documentation ()
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