public override int Compare(CPatch cph1, CPatch cph2) { int intResult = cph1.intSumCpgGID.CompareTo(cph2.intSumCpgGID); if (intResult == 0) { intResult = CCmpMethods.CmpColConsideringCount(cph1.CpgSS, cph2.CpgSS, cpg => cpg.GID); } return(intResult); }