#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int i;
    int arr[n];
    vector<int> ans;
    vector<int> then;
    set<int> in;
    for (i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr + n, greater<int>());
    for (i = 0; i < n; i++) cout << arr[i] << " ";
    cout << endl;
  }
}
