Hi Sudhansu,
when using a microflow as data source, the data grid only show what you give as an output. If you want to have both a microflow data source and sorting, you will need to create a searchhelper entity that can receive the sorting options. The DS of the data grid uses these options to sort the data BEFORE you sent it back to the data grid.
Hope this helps you get going!