#yuki1475 n=int(input()) for i in range(n): k,*l=list(map(int,input().split())) print(*reversed(sorted(l)))