Return the sorted odd numbers of a given array of integers (live coding session).
Implement a function that selects every odd integer, preserves duplicate occurrences, and returns the selected values in ascending order.
The input is a list of integers, and the output is a new list containing only odd values. For example, [5, 2, 3, 8, 1] returns [1, 3, 5], while [2, 4, 6] returns [].
def sorted_odd_numbers(nums):