(a, b)
return (a > b) - (a < b)
Comparison function for Python 3

    https://stackoverflow.com/a/22490617/10840
Comparison function for Python 3
Comparison function for Python 3
def cmp(a, b):
    """Comparison function for Python 3

    https://stackoverflow.com/a/22490617/10840
    """
    return (a > b) - (a < b)
def cmp ( a , b ) : return ( a > b ) - ( a < b )