Hi Giuseppe,
XQuery maps are unordered by definition in the specification. If you want to preserve order, you may need to use XML structures, sequences, arrays or additional data structures.
Ciao Christian
Giuseppe Celano celano@informatik.uni-leipzig.de schrieb am Fr., 13. Juli 2018 00:57:
Hi
Is it possible to preserve the order of the keys in a map when the map is returned?:
map{"b": 2, "c": 2, "a": 3}
return
map { "a": 3, "b": 2, "c": 2 }
Thanks! Giuseppe