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