arr.sort
Sorting an array. Sort array items according to the sorting function. The function must have two parameters containing pointers to two compared items. It must return int less than, equal to or greater than zero if the left value is less than, equal to or greater than the first one respectively.
uint sortfunc
)
Parameters
sortfunc | Sorting function. |
Return value
Returns the object which method has been called.
Related links | Source |