


1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
The first line of the input contains an integer T denoting the number of test cases.
The first line of each test case contains an integer N, denoting the size of the array.
The second line of each test case contains N space-separated integers, representing the elements of the array.
The only line of output of each test case consists of N integers, denoting the sorted order of elements in the given array.
Print the output of each test case in a separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 100
1 <= N <= 10^4
0 <= arr[i] <= 2
where arr[i] is the array element at index 'i'.
Time Limit: 1 sec
Algorithm
Algorithm