Exemplo n.º 1
0
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))
Exemplo n.º 2
0
def cmp_service_name(column, r1, r2):
    return cmp(cmp_service_name_equiv(r1[column]), cmp_service_name_equiv(r2[column])) or \
           cmp_num_split(column, r1, r2)