Pergunta de entrevista da empresa Morgan Stanley

In a unsorted array of numbers between 1 and 9, return the same array with only the odd numbers sorted. The even numbers needs to stay exactly at the same indexes.