#include <bits/stdc++.h>
using namespace std;
void test_case() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = int(0); i < int(n); i++) cin >> a[i];
  sort(a.begin(), a.end());
  for (int i = n - 1; i >= 0; i--) cout << a[i] << " ";
  cout << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) test_case();
  return 0;
}
