ee.Image.arraySort

Sorts elements of each array pixel along one axis.

UsageReturns
Image.arraySort(keys)Image
ArgumentTypeDetails
this: imageImage

Array image to sort.

keysImage, default: null

Optional 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.