sorting and sending all changed ids in curriculum change