#include <bits/stdc++.h>
using namespace std;
char nl = '\n';
using Int = long long;
long long re[100];
void solve() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> re[i];
  }
  sort(re, re + n);
  for (long long i = n - 1; i >= 0; i--) {
    cout << re[i] << " ";
  }
  cout << nl;
}
signed main() {
  long long t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
}
