#include <bits/stdc++.h>
using namespace std;
int t, n, a[10001];
int main() {
  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, greater<int>());
    for (int i = 1; i <= n; ++i) printf("%d ", a[i]);
    putchar(10);
  }
  return 0;
}
