Sort milestones by rarity during processing.