Can I change the way the data is sorted in tables?

Yes, you can arrange the data to your requirements with the arrows next to the column.