In the Task List and Gantt views, you can sort columns by ascending or descending order.
To sort columns:
From the menu, select View, then select a view, or click the view toolbar button.
Hover over a column header until the Sort icons display, then click Sort Ascending
or Sort Descending
.