def helper_cmp_numbers(n1, n2):
    """Helper to compare two numbers and return `1` if the first number is larger,
    `0` if the numbers are equal, and `-1` otherwise.
    """
    if n1 > n2:
        return 1
    elif n1 < n2:
        return -1
    else:
        return 0
