Sorting on JSON output data

1
Hi All, I am generating a JSON array using  defined JSON schema. When I generate an output the ordered in the output is in default order (I believe based on mxid). But I want to order it on a particular attribute of the same entity which I am not getting. I also tried to order a list before sending to export to JSON action, but it did not work. Is it possible to make an order in the JSON output data? See entity relationship below: RootObject          1         ^         |         |         |         |         |         |         * EntityList (need an order)    
asked
2 answers
0

I would suggest to retrieve the data via a microflow instead of association and then do the sorting in the microflow.
https://docs.mendix.com/refguide/export-mappings#getting-objects-by-using-a-microflow

answered
0

By default json dose not have order.

U can order it somewhere before use it.

answered