#include <bits/stdc++.h>
using namespace std;
bool can(string str) {
  for (int i = 1; i < str.size(); i++) {
    if (abs(str[i] - str[i - 1]) == 1) return false;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int T;
  cin >> T;
  while (T--) {
    string str;
    cin >> str;
    map<char, int> cnt;
    for (int i = 0; i < str.size(); i++) {
      cnt[str[i]]++;
    }
    string p1 = "";
    string p2 = "";
    for (auto &x : cnt) {
      int pos = x.first - 'a' + 1;
      if (pos & 1) {
        while (x.second--) p1 += x.first;
      } else {
        while (x.second--) p2 += x.first;
      }
    }
    string r1 = p1 + p2;
    string r2 = p2 + p1;
    if (can(r1)) {
      cout << r1 << '\n';
    } else if (can(r2)) {
      cout << r2 << '\n';
    } else {
      cout << "No answer\n";
    }
  }
  return 0;
}
