#include <bits/stdc++.h>
using namespace std;
const int MAXN = 105;
int n;
int a[MAXN];
void solve() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  sort(a, a + n);
  reverse(a, a + n);
  for (int i = 0; i < n; i++) {
    printf("%d ", a[i]);
  }
  cout << endl;
}
int main() {
  int tn;
  scanf("%d\n", &tn);
  while (tn--) {
    solve();
  }
  return 0;
}
