If you are using a Datagrid, the user can sort by clicking on column headers – this is out of the box functionality. To get a similar capability in a Listview, you’ll need to use Listview Controls from the app store. So you should be able to offer this capability without writing custom microflows.