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