Error in sorting DeadlineTask. Edited