#include <bits/stdc++.h>
using namespace std;
bool cmp(int x, int y) { return x > y; }
int main() {
  int t;
  int n;
  int a[105];
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
    }
    sort(a, a + n, cmp);
    for (int i = 0; i < n - 1; i++) {
      printf("%d ", a[i]);
    }
    printf("%d\n", a[n - 1]);
  }
}
