#include <iostream> #include <string> #include <algorithm> #include <cstdio> using namespace std; int main() { //freopen("test.in", "r", stdin); //freopen("test.out", "w", stdout); int t; cin >> t; while (t--) { string s; cin>>s; sort(s.begin(),s.end()); cout<<s<<endl; } return 0; } /************************************************************** Problem: 2211 User: admin Language: C++ Result: Accepted Time:9 ms Memory:2080 kb ****************************************************************/