public int CompareTo(HexWeight other) { int cs0 = S0.CompareTo(other.S0); if (cs0 != 0) { return(cs0); } int cs1 = S1.CompareTo(other.S1); if (cs1 != 0) { return(cs1); } int cs2 = S2.CompareTo(other.S2); if (cs2 != 0) { return(cs2); } int cs3 = S3.CompareTo(other.S3); if (cs3 != 0) { return(cs3); } int cs4 = S4.CompareTo(other.S4); if (cs4 != 0) { return(cs4); } int cs5 = S5.CompareTo(other.S5); if (cs5 != 0) { return(cs5); } return(0); }