N = int(input()) for _ in range(N): _, *parts = map(int, input().split()) parts.sort(reverse=True) print(" ".join(map(str, parts)))