added sorting to display of task items