add sort for grade and records