#include <bits/stdc++.h>
using namespace std;
void kaam() {
  int n, ctr = 0, max = 0;
  cin >> n;
  int arr[n];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  reverse(arr, arr + n);
  for (long long i = 0; i < n; i++) cout << arr[i] << " ";
  cout << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) kaam();
  return 0;
}
