OPNET interview question

sort an array in O(n)