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