#include <bits/stdc++.h>
using namespace std;
template <typename T_vector>
void output_vector(const T_vector& v, bool add_one = false, int start = -1,
                   int end = -1) {
  if (start < 0) start = 0;
  if (end < 0) end = int(v.size());
  for (int i = start; i < end; i++)
    cout << v[i] + (add_one ? 1 : 0) << (i < end - 1 ? ' ' : '\n');
}
void run_sample() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (auto& d : A) cin >> d;
  sort(A.begin(), A.end());
  reverse(A.begin(), A.end());
  output_vector(A);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t = 1;
  cin >> t;
  while (t--) run_sample();
}
