add Sorting tasks by deadlines