(s, order)
return (-s[1], order(s[0]))
Key for comparing two signatures.

    s = (m, k), t = (n, l)

    s < t iff [k > l] or [k == l and m < n]
    s > t otherwise
Key for comparing two signatures.
Key for comparing two signatures .
def sig_key(s, order):
    """
    Key for comparing two signatures.

    s = (m, k), t = (n, l)

    s < t iff [k > l] or [k == l and m < n]
    s > t otherwise
    """
    return (-s[1], order(s[0]))
def sig_key ( s , order ) : return ( - s [ 1 ] , order ( s [ 0 ] ) )