use api for YAML ordering instead of text munging
Merge pull request #7 from haarg/yaml-order

Use api for YAML ordering instead of text munging