Fixed #11929 -- Make dump data output YAML in a sane order.

Thanks to sampablokuper for the report.