import sys
read = lambda: sys.stdin.readline().strip()
readi = lambda: map(int, read().split())


for _ in range(int(read())):
    n = int(read())
    nums = list(readi())
    nums.sort(reverse = True)
    for i in nums: print(i, end=" ")
    print()