#include <bits/stdc++.h>
using namespace std;
int ara[111];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int i, j, k, l, m, n, t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 0; i < n; i++) cin >> ara[i];
    sort(ara, ara + n);
    for (i = n - 1; i >= 0; i--) cout << ara[i] << " ";
    cout << endl;
  }
  return 0;
}
