Given a string of lowercase characters from ‘a’ – ‘z’. We need to write a program to print the characters of this string in sorted order.
The first line contains an integer T, denoting number of test cases. Then T test case follows. First line of each test case contains a string S each.
For each test case, print the string S in sorted order.
String S will contains lowercase character from 'a'-'z
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.