ee.Array.sort

Sorts elements of the array along one axis.

UsageReturns
Array.sort(keys)Array
ArgumentTypeDetails
this: arrayArray

Array image to sort.

keysArray, 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.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!