for _ in range(int(input())): k, *l = map(int, input().split()) print(*sorted(l, reverse = True))