#include <bits/stdc++.h>
using namespace std;
int t, n, m, a[200], p[200], j, f;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      a[i] = -1 * a[i];
    }
    sort(a, a + n);
    for (int i = 0; i < n; i++) cout << -1 * a[i] << ' ';
    cout << endl;
  }
  return 0;
}
