#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 1e5 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int ncase; scanf("%d", &ncase); while (ncase--) { int n; scanf("%d", &n); vector v(n); for (auto& x : v) scanf("%d", &x); sort(v.rbegin(), v.rend()); for (int i = 0; i < n; i++) printf("%d%c", v[i], " \n"[i + 1 == n]); } return 0; }