#include <bits/stdc++.h>
using namespace std;
bool cmp(int a, int b) { return a > b; }
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    int n;
    cin >> n;
    vector<int> V(n);
    for (int i = 1; i <= n; ++i) {
      cin >> V[i - 1];
    }
    sort(V.begin(), V.end(), cmp);
    for (int i = 1; i <= n; ++i) {
      cout << V[i - 1] << " ";
    }
    cout << endl;
  }
}
