N = int(input()) for i in range(N): s, *A = input().split() A = [int(a) for a in A] A.sort(reversed = True) print(*A)