ee.Array.sort

Sorts elements of the array along one axis.

UsageReturns
Array.sort(keys)Array
ArgumentTypeDetails
this: arrayArrayArray image to sort.
keysArray, default: nullOptional keys to sort by. If not provided, the values are used as the keys. The keys can only have multiple elements along one axis, which determines the direction to sort in.