n=int(input()) for i in range(n): k,*l=map(int,input().split()) print(sorted(l)[::-1])