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