
    Given a route identifier string where consonants represent fixed delivery hubs and vowels represent flexible routing points, create a function that reorders only the flexible routing points (represented by vowels) while maintaining the fixed hub positions (represented by consonants) to optimize delivery paths based on real-time conditions. The function should keep all consonants in their original positions while reversing the order of appearance of vowels in the string to generate an alternative route sequence.
    

    
def reverse_vowels(str1):
    """
    Given a route identifier string where consonants represent fixed delivery hubs and vowels represent flexible routing points, create a function that reorders only the flexible routing points (represented by vowels) while maintaining the fixed hub positions (represented by consonants) to optimize delivery paths based on real-time conditions. The function should keep all consonants in their original positions while reversing the order of appearance of vowels in the string to generate an alternative route sequence.
    

    """
def reverse_vowels(str1):
    """
    Given a route identifier string where consonants represent fixed delivery hubs and vowels represent flexible routing points, create a function that reorders only the flexible routing points (represented by vowels) while maintaining the fixed hub positions (represented by consonants) to optimize delivery paths based on real-time conditions. The function should keep all consonants in their original positions while reversing the order of appearance of vowels in the string to generate an alternative route sequence.
    

    """
    vowels = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            vowels += char
    result_string = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            result_string += vowels[-1]
            vowels = vowels[:-1]
        else:
            result_string += char
    return result_string