a=0 for _ in range(int(input())): a=input() a,list_p=map(int,input().split()) list_p.sort() list_p.reverse() print(*list_p)