a=0 p=[] for _ in range(int(input())): a=input() p=(int,input().split()) p.sort() p.reverse() print(*p)