def cmpQueryResult(self, d, targ):
        def _flavorCmp(a, b):
            a = str(a)
            b = str(b)
            if a < b:
                return -1
            elif a == b:
                return 0
            else:
                return 1

        for versionDict in d.itervalues():
            for flavorList in versionDict.itervalues():
                flavorList.sort(_flavorCmp)

        for versionDict in targ.itervalues():
            for flavorList in versionDict.itervalues():
                flavorList.sort(_flavorCmp)

        assert(d == targ)
dataset/ETHPy150Open sassoftware/conary/conary_test/flavortest.py/FlavorTest.cmpQueryResult/original