#include <bits/stdc++.h>
using namespace std;
int t, n;
int a[110];
int mycmp(int c, int d) { return c > d; }
int main() {
  scanf("%d", &t);
  for (int k = 1; k <= t; k++) {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    sort(a + 1, a + n + 1, mycmp);
    for (int i = 1; i < n; i++) printf("%d ", a[i]);
    printf("%d\n", a[n]);
  }
  return 0;
}
