Use correct comparator for getCopyOfTasksSorted method