Teradata Interview Question

Sort an array based on 0's,1's,2's