You can sort the list in your microflow with the list operation 'sort' https://docs.mendix.com/refguide4/list-operation