sort the task list