public int CompareTo(StudentTestResult other) { if (FirstName != other.FirstName) { return(FirstName.CompareTo(other.FirstName)); } if (LastName != other.LastName) { return(LastName.CompareTo(other.LastName)); } if (TestName != other.TestName) { return(TestName.CompareTo(other.TestName)); } if (TestDate != other.TestDate) { return(TestDate.CompareTo(other.TestDate)); } return(Score.CompareTo(other.Score)); }