#include <bits/stdc++.h>
using namespace std;
void reader() {}
void IOFast() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n, greater<long long>());
  for (long long i = 0; i < n; i++) cout << a[i] << " ";
  cout << "\n";
}
signed main() {
  reader();
  IOFast();
  long long t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
