added sorting to tasks fragment