ee.FeatureCollection.sort

Sort a collection by the specified property.

Returns the sorted collection.

UsageReturns
FeatureCollection.sort(property, ascending)Collection
ArgumentTypeDetails
this: collectionCollection

The Collection instance.

propertyString

The property to sort by.

ascendingBoolean, optional

Whether to sort in ascending or descending order. The default is true (ascending).

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!