n=int(input()) for i in range(n): k,*l=map(int,input().split()) l.sort(reverse=True) print(*l)