import sys inp = [list(map(int,s.split())) for s in sys.stdin.read().splitlines()] for data in inp[1:]: _, *parts = data print(*sorted(parts,reverse=True))