def cmp(self, r1, r2): return cmp_num_split("host_name", r1, r2)
def cmp_service_name(column, r1, r2): return (cmp_service_name_equiv(r1[column]) > cmp_service_name_equiv( r2[column])) - (cmp_service_name_equiv(r1[column]) < cmp_service_name_equiv(r2[column])) or cmp_num_split( column, r1, r2)
def cmp(self, r1, r2): return (r1["site"] > r2["site"]) - ( r1["site"] < r2["site"]) or cmp_num_split("host_name", r1, r2)