Make sure you select the portion of the table you need or all of it if there's only one header or none:
Click on the Data tab and then Filter:
Excel automatically detects headers and creates the sorting for you. Simply click on one of the new drop-down icons from the headers to sort in the way you need: