public int Compare(Shape x, Shape y) { int start = IntVector2.Comparer(x.tStart, y.tStart); if (start != 0) { return(start); } return(IntVector2.Comparer(x.tEnd, y.tEnd)); }