from typing import Sequence


def order_inversions(
    ttset: Sequence
) -> int:

    """ Given a transformed version of a series with order numbers,
    returns the number of order inversions that ocurred because of the transformation.
    """

    orders = [x[0] for x in ttset]
    inv_count = 0
    for i in range(len(ttset)):
        for j in range(i+1, len(ttset)):
            if (orders[i] > orders[j]):
                inv_count += 1
            else:
                pass
    return inv_count