Infosys interview question

Sort an array containing elements from the set (0,1,2)