排序之后输出即可你题目的解答代码如下:
t = int(input()) for i in range(t): li = input().split(" ") li.sort(reverse=True) print("".join(li))
如有帮助,望采纳!谢谢!