#include <bits/stdc++.h>
using namespace std;
void bogo(vector<int>& a) {
  for (int i = 0; i < a.size() - 1; i++) {
    int biggest = i;
    for (int j = i + 1; j < a.size(); j++)
      if (a[biggest] < a[j]) biggest = j;
    if (biggest != i) swap(a[i], a[biggest]);
  }
}
int main(int argc, char** argv) {
  int t = 0;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n = 0;
    cin >> n;
    vector<int> a;
    for (int j = 0; j < n; j++) {
      int v = 0;
      cin >> v;
      a.push_back(v);
    }
    bogo(a);
    for (auto v : a) cout << v << " ";
    cout << endl;
  }
  return 0;
}
