import java.util.*;

public class B669{
    
  
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		while(t-->0){

			int n=sc.nextInt();
			int[] ar=new int[n];
			int[] vis=new int[n];
			int max=0;
			for(int i=0;i<n;i++){
				ar[i]=sc.nextInt();
			}
			Arrays.sort(ar);
			for(int i=n-1;i>=0;i--){
			    System.out.print(ar[i]+" ");
			}
			System.out.println();
		
		}
	}
}