n = int(input()) for _ in range(n): line = list(map(int,input().split())) k, l = line[0], line[1:] l_sort = sorted(l,reverse = True) print(*l_sort)