Is it possible to sort a list of coded value domains in ArcGIS Online?
I have a hosted Feature Layer with a field with domains. When I view them in ArcGIS Online they are not sorted by the Code value. I would like them to be sorted by code value, like using the tool Sort coded value domain in ArcGIS Desktop.
Since I couldn't find any standard way of doing this I have tried to use ArcGIS API for Python in Jupyter Notebook, and the arcpy.SortCodedValueDomain_management tool but It returns an error saying my hosted feature layer is not a valid geodatabase (see attached photo - with deliberately wrong user and password).
Perhaps someone can help me here?