Revising ordering of students and locations