コード例 #1
0
    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])
コード例 #2
0
    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])
コード例 #3
0
    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])
コード例 #4
0
    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])