import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); // System.out.println("n = "+ n); for (int i = 0; i < n ; i++) { int k = sc.nextInt(); ArrayList parts = new ArrayList(); for (int j = 0; j < k; j++) { parts.add(sc.nextInt()); } Collections.sort(parts); Collections.reverse(parts); int[] tmp = new int[parts.size()]; parts.toArray(); for (int value : parts) { System.out.print(value); System.out.print(" "); } System.out.print("\n"); } } }