N = int(input()) for _ in range(N): k, *L = map(int,input().split()) L.sort(reverse=True) print(*L)