Page MenuHomePhorge

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$listList of objects to sort.
string$methodName of a method to call on each object. The method must return a @{class:PhutilSortVector}.
Return
listObjects ordered by the vectors.