Page MenuHomePhorge

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$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.