def main(): for i in range(int(input())): a, *b = map(int, input().split()) print(*sorted(b, reverse=True)) if __name__ == '__main__': main()