sort#
- geetools.DictionaryAccessor.sort()#
Sort the dictionary by keys in ascending order.
- Returns:
The sorted dictionary.
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() d = ee.Dictionary({"foo": 1, "bar": 2}).geetools.sort() d.getInfo()
{'bar': 2, 'foo': 1}