#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.1415926535897932384626433;
const long long M = 1743;
long long t, n, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> t;
  while (t--) {
    vector<long long> v;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> m;
      v.push_back(m);
    }
    sort(v.rbegin(), v.rend());
    for (auto i : v) cout << i << " ";
    cout << "\n";
  }
}
