#include <bits/stdc++.h>
using namespace std;
int fun(const vector<int> &v, int n) {
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      if (j - v[j] == i - v[i]) {
        void(0);
        ;
        return -1;
      }
    }
  }
  return 1;
}
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &x : a) {
    cin >> x;
  }
  sort(a.rbegin(), a.rend());
  for (auto &x : a) {
    cout << x << " ";
  }
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  while (n--) solve();
  return 0;
}
