#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i;
  cin >> t;
  while (t--) {
    cin >> n;
    int x[n];
    for (i = 0; i < n; i++) cin >> x[i];
    sort(x, x + n);
    for (i = n - 1; i >= 0; i--) cout << x[i] << " ";
    cout << endl;
  }
  return 0;
}
