Sorting upon exporting table data

how are you getting it from the table to Excel?