Sort array containing 0,1,2