Oracle Interview Question

Given an array consisting of only {0,1,2} elements , not necessarily same frequency of each number. Sort the array | (In-Place) | complexity O(n).