def tuplesorted(items, *keys):
    tuple_keys = [
        Key(func=lambda t, i=index, k=key: k.func(t[i]), reverse=key.reverse)
        for index, key in enumerate(keys)
    ]
    return multisorted(items, *tuple_keys)