#include <bits/stdc++.h>
const int maxn = 100 + 5;
int a[maxn];
int main() {
  int T, n;
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) scanf("%d", a + i);
    std::sort(a, a + n);
    for (int i = n - 1; i >= 0; --i) {
      if (i != n - 1) putchar(' ');
      printf("%d", a[i]);
    }
    puts("");
  }
  return 0;
}
