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