def mycmp(oSelf, oOther): """ __cmp__ like function. """ iCmp = utils.stricmp(oSelf.oBuildCategory.sProduct, oOther.oBuildCategory.sProduct); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oBuildCategory.sBranch, oOther.oBuildCategory.sBranch); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oBuildCategory.sType, oOther.oBuildCategory.sType); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oTestBox.sName, oOther.oTestBox.sName); if iCmp != 0: return iCmp; return 0;
def mycmp(oSelf, oOther): """ __cmp__ like function. """ iCmp = utils.stricmp(oSelf.oBuildCategory.sProduct, oOther.oBuildCategory.sProduct); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oBuildCategory.sBranch, oOther.oBuildCategory.sBranch); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oBuildCategory.sType, oOther.oBuildCategory.sType); if iCmp != 0: return iCmp; iCmp = utils.stricmp(oSelf.oTestBox.sName, oOther.oTestBox.sName); if iCmp != 0: return iCmp; return 0;