n = int(input()) for _ in range(n): k, *l = input().split() l = list(map(int, l)) print(*sorted(l)[::-1])