You can do the sorting in ascending or descending order by following the below steps:
You can sort the Tasks in either ascending or descending order. Move your mouse pointer on Sort By and click
or
that appears to sort in ascending or descending order.