#include <bits/stdc++.h>
using namespace std;
int n;
int a[105];
bool cmp(int x, int y) { return x > y; }
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    sort(a + 1, a + 1 + n, cmp);
    for (int i = 1; i <= n; i++) cout << a[i] << ' ';
    cout << endl;
  }
  return 0;
}
