Page MenuHomePhabricator

function isort($list, $index)
libphutil Technical Documentation (Core Utilities)

Sort a list of arrays by the value of some index. This method is identical to msort(), but operates on a list of arrays instead of a list of objects.

Parameters
list$listList of arrays to sort by some index value.
string$indexIndex to access on each object; the return values will be used to sort the list.
Return
listArrays ordered by the index values.