#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cout << *it << " = " << a << '\n';
  err(++it, args...);
}
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    for (__typeof(n) i = (0) - (0 > n); i != (n) - (0 > n);
         i += 1 - 2 * (0 > n))
      cin >> arr[i];
    sort(arr, arr + n, greater<int>());
    for (__typeof(n) i = (0) - (0 > n); i != (n) - (0 > n);
         i += 1 - 2 * (0 > n))
      cout << arr[i] << ' ';
    cout << '\n';
  }
  return 0;
}
