sorting of milestones