You can try using Microflow as a data source for your template grid, and use the list operations to sort your list based on an attribute from the dataview.
Your datasource microflow will have one parameter (the same object in your dataview), and you can retrieve by association the list and then use sort option in the list operation activity. You would have to figure out a way to determine the sort order of your list based on the object you have.