added sorting to task list