Couple of approaches here, hinging on the fact that data in an excel file isn’t necessarily in a ‘table’ unless it has specifically been designed that way.
If you have control over the excel file, just convert the data to an actual table. to do this you will go into the file, highlight the data you want to make into a table, then go to the Insert Ribbon and then to table,
excel will guide you through the rest. this will set the data as an actual table and you can give it a name which you can use in that activity.
If you dont have control over the file, then read the file into UiPath, then use a sort datatable activity instead. it will sort the Datatable which is in the the robots ‘memory’ at that point, and you can then write that sorted table back into your original file, having the effect of sorting the data in excel