group tasks by milestone