ee.Array.sort

Stay organized with collections Save and categorize content based on your preferences.
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.