for _ in range(int(input())): p=list(map(int,input().split())) list_p.sort() list_p.reverse() print(list_p)