N = int(input()) ans = [] for _ in range(N): K, *L = input().split() l = list(map(int, L)) ans.append(sorted(l, reverse=True)) for a in ans: print(' '.join([str(i) for i in a]))