group by milestone ID