#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    vector<int> v(n);
    for (auto &it : v) scanf("%d", &it);
    sort(v.begin(), v.end(), greater<int>());
    for (auto it : v) printf("%d ", it);
    printf("\n");
  }
}
