def mySort(x, y): cmpC = ecoInfo.cmpCCodes(x[0], y[0]) if cmpC != 0: return cmpC cmpB = ecoInfo.cmpBCodes(x[1], y[1]) if cmpB != 0: return cmpB return ecoInfo.cmpECodes(x[2], y[2])
def mySort(x, y): cmp0 = ecoInfo.cmpZCodes(x[0], y[0]) if cmp0 != 0: return cmp0 cmp1 = ecoInfo.cmpBCodes(x[1], y[1]) if cmp1 != 0: return cmp1 cmp2 = ecoInfo.cmpECodes(x[2], y[2]) if cmp2 != 0: return cmp2 return ecoInfo.cmpCCodes(x[3], y[3])