How to sort non-persistent objects

I have two non-persistent entities with a 1-* association. I have a DataView on the outside and a DataGrid on the inside. When using non persistent objects, you can not order the results in the DataGrid. Nevertheless, are there any guarantees on the order of the results? I imagine that they return in the same order as they ware stored, but I'm not sure if this is always the case. If the order is preserved, I can simply order them by creating them in the correct order.
2 answers

Do you fill the datagrid by association or through MF ?

If you use a MF to retrieve then you can handle the order in there


There is an option; using a Micro Flow as data source, then use a 'List Operation' action Filter to sort. Hope this will sort you out.