#include <bits/stdc++.h>
using namespace std;
int main() {
  int test_case;
  cin >> test_case;
  while (test_case--) {
    int n;
    cin >> n;
    vector<int> vec(n);
    for (int i = 0; i < n; i++) cin >> vec[i];
    sort(vec.rbegin(), vec.rend());
    for (int i = 0; i < n; i++) cout << vec[i] << " ";
    cout << endl;
  }
  return 0;
}
