def contains_ordered(lst, order):
    """
    Checks if `order` sequence exists in `lst` in the defined order.
    """
    prev_idx = -1
    try:
        for item in order:
            idx = lst.index(item)
            if idx <= prev_idx:
                return False
            prev_idx = idx
    except ValueError:
        return False
    return True