First try of sorting Tasks