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