#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200;
int t;
int v[MAXN];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) cin >> v[i];
    sort(v, v + n);
    reverse(v, v + n);
    for (int i = 0; i < n; i++) cout << v[i] << " ";
    cout << '\n';
  }
  return 0;
}
