//sort用法:包含于algorithm中,sort(a,a+n)a是字符串首地址,a+n是末尾地址,作用是将数组升序~
#include<iostream>
#include<cstdio>#include<algorithm>
#include<cstring>
using namespace std;
int main(void){
int a,b,c[1000];
while(cin>>a){
for(int i = 1;i<=a;++i){
cin>>b;
for(int j = 0;j<b;++j)
cin>>c[j];
sort(c,c+b);
for(int j = 0;j<b;++j){
if(j != 0)
cout<<" "<<c[j];
else
cout<<c[j];
}
cout<<endl;
}
}
return 0;
}