sort(Object array, Boolean decreasing)

The sort function sorts an array by increasing (as default) or decreasing order.

Parameters

  • Object array - 1d-array to sort.
  • Boolean decreasing - (optional) sort the array by increasing (as default) or decreasing.

Return type

Object