title: Can PyYAML dump dict items in non-alphabetical order?
body: <p>I'm using <code>yaml.dump</code> to output a dict.  It prints out each item in alphabetical order based on the key.</p>
  
  <pre><code>&gt;&gt;&gt; d = {"z":0,"y":0,"x":0}
  &gt;&gt;&gt; yaml.dump( d, default_flow_style=False )
  'x: 0\ny: 0\nz: 0\n'
  </code></pre>
  
  <p>Is there a way to control the order of the key/value pairs?</p>
  
  <p>In my particular use case, printing in reverse would (coincidentally) be good enough.  For completeness though, I'm looking for an answer that shows how to control the order more precisely.</p>
  
  <p>I've looked at using <code>collections.OrderedDict</code> but PyYAML doesn't (seem to) support it.  I've also looked at subclassing <code>yaml.Dumper</code>, but I haven't been able to figure out if it has the ability to change item order.</p>