#T751. ASCII码排序

ASCII码排序

Description

It is well known that characters in the C language are represented using ASCII codes.

The task requires inputting 3 characters (which can be repeated) and then outputting these 3 characters in ascending order based on their ASCII codes.

Input Format

The first line inputs a number N, indicating there are N sets of test data.

The subsequent N lines input multiple sets of data. Each set of input data occupies one line and consists of three characters without any spaces in between.

Output Format

For each set of input data, output one line with the characters separated by a single space.

3
qwe
asd
zxc
e q w
a d s
c x z

Hint

Pay attention to character operations and line breaks.

Source

CodesOnline