OrderBy()
OrderBy(array $array, \function $key) : array
Sorts the elements of a sequence in ascending order according to a key.
Parameters
array | $array | A sequence of values to order. |
\function | $key | A function to extract a key from an element. |
Returns
array —An System.Linq.IOrderedEnumerable<T>
whose elements are sorted according to a key.