It sounds like you are trying to sort on multiple columns. You can select multiple columns in your table by holding the ctrl or command key and clicking on the column headers. From there you can select the column menu and find the "Advanced..." option under "Sort". The form that appears allows you to perform a sort on multiple columns and you can select what order and priority to sort these columns by. Hope this helps!