Make sure retrieve your data using the microflow as the datasource.
I have never seen a bug in the sorting of a list. To double check try to use the List operation / Sort and again sort the list on the date entity at the end of the microflow and make sure to pass that list (and add a breakpoint to debug it). If that list is sorted correctly check the list actions that you did earlier and double check them because in my opinion you made a mistake there or you are passing the wrong list at the end of the microflow. If it stil does not sort correctly create a support ticket, because then something really weird is going on.
Regards,
Ronald
With "turned on or off" I assume you mean are made hidden/visible? This should not affect the order of the elements in the template grid. It should show it in the order your microflow returns it. Have you debugged the microflow to check this (just before the list return)?