N = int(input()) for i in range(N): _, *A = map(int, input().split()) print(*sorted(A)[::-1])