J.C.
Do you mean they barge in before the class is over? If so, the teacher should address it since they are interrupting class time. Other wise, if class is over, I don't think it really matters what order you all get in the class room, and it would seem kind of grade school to go to the teacher complaining that someone cut in line.