Export a sorted table to excel

We have many tables in our application Tables that can be sorted, filtered, grouped

When user chooses to export a sorted table to excel, I wonder what is the best way to display the sorted columns?