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