#include <bits/stdc++.h>
using namespace std;
int L;
string s;
bool check(string t) {
  for (int i = 1; i < (int)t.size(); i++) {
    if (abs(t[i] - t[i - 1]) == 1) return false;
  }
  return true;
}
int main() {
  cin >> L;
  while (L--) {
    cin >> s;
    string a1 = "";
    string a2 = "";
    for (int i1 = 0; i1 < s.size(); i1++) {
      if ((int)s[i1] & 1)
        a1 += s[i1];
      else
        a2 += s[i1];
    }
    sort(a1.begin(), a1.end());
    sort(a2.begin(), a2.end());
    if (check(a1 + a2)) {
      cout << (a1 + a2) << "\n";
    } else if (check(a2 + a1)) {
      cout << (a2 + a1) << "\n";
    } else {
      cout << "No answer"
           << "\n";
    }
  }
  return 0;
}
