Select the data table or cell range that you want to sort.
Go to the icon.
Under the Data menu, choose Sort.
Tap Custom Sort.
Choose the orientation, and choose what order to sort the entire table and which columns to sort by.
Add new criteria if needed.
Tap Apply.