REST json output - Is it possible to sort the objects in a json array?
0
Below picture shows the last two objects of a json response. Am I right that I cannot define the sorting of the objects in the json response? Here is how I added the objects. I explicitly sorted the objects and verified that the Domains are ordered as expected. Still the last record has a lower DomainID than the one before. Is the ordering maybe based on the Mendix id? Below the list of the unsorted Domains.
asked
Toon Verschoor - Deloitte
3 answers
5
Make sure that attribute sequence added accordingly while sorting, and if needed move up/down as required. I hope it will help, and also sort it just before returning the list.
answered
Ankit Kanth
0
Thanks, Martijn, but no success. The below gives the same result.
answered
Toon Verschoor
0
Hi Toon,
You can use the get method microflow inside your export mapping for the entity that you want to sort and do the sorting activity inside of it as a return result