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