Given a random set of numbers, Print them in sorted order.
The first line of input contains an integer T, denoting the number of test cases. The description of T test cases follows. The first line of each test case contains a single integer N denoting the size of array. The second line contains N space-separated integers A1, A2, ..., AN denoting the elements of the array.
Print each sorted array in a seperate line. For each array its numbers should be seperated by space.
1 ≤ T ≤ 10
1 ≤ N ≤ 1000
Testcase 1: The array after sorting is: 1 3.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.