Modified SortBy to use GradeID