#C2441. Scrambled Message Decoding
Scrambled Message Decoding
Scrambled Message Decoding
You are given a scrambled message containing one or more words separated by spaces. The task is to decode the message by sorting the letters within each word in lexicographical order. In other words, for a given word \(w\), you must output \(sorted(w)\), where the sorting is done in ascending order.
The input consists of several test cases. For each test case, process the message and output the decoded message by sorting each word independently. Ensure that you use standard input (stdin) to read and standard output (stdout) to print the results.
inputFormat
The first line of input contains a single integer \(T\) that denotes the number of test cases. Each of the following \(T\) lines contains a scrambled message which may consist of multiple words separated by spaces.
outputFormat
For each test case, output the decoded message. The decoded message is obtained by sorting the letters of each word in ascending order, while preserving the order of words.
## sample1
hacker
acehkr
</p>