#include <bits/stdc++.h>
using namespace std;
void xx(int *a, int n) {
  for (int j = 1; j < n; ++j)
    for (int i = j; i <= n; ++i)
      if (a[j] < a[i]) {
        int t = a[i];
        a[i] = a[j];
        a[j] = t;
      }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t, n;
  cin >> t;
  for (int i = 1; i <= t; ++i) {
    cin >> n;
    int a[n];
    for (int j = 1; j <= n; ++j) cin >> a[j];
    xx(a, n);
    for (int j = 1; j <= n; ++j) cout << a[j] << " ";
    cout << endl;
  }
  return 0;
}
