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