#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    vector<int> arr;
    for (int i = 0; i < N; i++) {
      int x;
      cin >> x;
      arr.push_back(x);
    }
    sort(arr.begin(), arr.end(), greater<int>());
    for (int i = 0; i < N; i++) {
      cout << arr[i] << " ";
    }
    cout << "\n";
  }
}
