Human: yaml dump with order. Assistant: 
Here is a Python program to yaml dump with order

import yaml

def yaml_dump_with_order(d, indent=4, sort_keys=False):
    """
    Dumps a dict d into a yaml string with order
    """
    return yaml.dump(d, default_flow_style=False, indent=indent, sort_keys=sort_keys)

# Enter the dictionary
d = {'key1': 'value1', 'key2': 'value2'}

# Calling the function
print((yaml_dump_with_order(d)))

#Example Output

# key1: value1
# key2: value2

#Remember to inspect code for bugs.