def cmp_people_lname(val1, val2):
    """Old school comparison function. LT = -1, EQ = 0, GT = 1"""
    if val1['lname'] == val2['lname']:
        return 0
    if val1['lname'] > val2['lname']:
        return 1
    else:
        return -1
dataset/ETHPy150Open christabor/MoAL/MOAL/languages/paradigms/functional/functools_examples.py/cmp_people_lname/original