I have a Collection that consists of objects, made from an integer/string as key/attribute and some value.
Like this:
results
-> '1' : 231.034
-> '2' : 3267.123
-> '3' : 235.23
When I write:
"""FOR u IN collection
RETURN u.results"""
I get them in a random order like this,
[{'3' : 235.23, '1' : 231.034, '2' : 3267.123}]
How do I sort them according to their attribute?
I tried:
"""FOR u IN collection
SORT ATTRIBUTES(u.results) ASC
RETURN u.results"""
As well as all other combinations I could come up with.