for _ in range(int(input())): K, *L = map(int,input().split()) print(*sorted(L)[::-1])