Sorting students by their ID