#include #include #include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); uint16_t N, i, K, j, L[20]; cin >> N; for (i = 0; i != N; ++i) { cin >> K; for (j = 0; j != K; ++j) cin >> L[j]; sort(L, L + K, greater()); cout << L[0]; for (j = 1; j != K; ++j) cout << ' ' << L[j]; cout << '\n'; } return 0; }