sorting by gradeID