title: Hashtables and key order
body: <p>Is there a way to keep the order of keys in a hashtable as they were added? Like a push/pop mechanism.</p>
  
  <p>Example:</p>
  
  <pre><code>$hashtable = @{}
  
  $hashtable.Add("Switzerland", "Bern")
  $hashtable.Add("Spain", "Madrid")
  $hashtable.Add("Italy", "Rome")
  $hashtable.Add("Germany", "Berlin")
  $hashtable
  </code></pre>
  
  <p>I want to retain the order in which I've added the elements to the hashtable.</p>