sort students by id