title: Is it possible to sort a HashTable?
body: <p>I have a property that returns a <code>HashTable</code>. I would like to sort it without refactoring my property. <em>Please note</em>: I do not want to return another type.
  Code:</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// All content containers.
      /// &lt;/summary&gt;
      public Hashtable Containers
      {
          get
          {
              Hashtable tbl = new Hashtable();
              foreach (Control ctrl in Form.Controls)
              {
                  if (ctrl is PlaceHolder)
                  {
                      tbl.Add(ctrl.ID, ctrl);
                  }
                  // Also check for user controls with content placeholders.
                  else if (ctrl is UserControl)
                  {
                      foreach (Control ctrl2 in ctrl.Controls)
                      {
                          if (ctrl2 is PlaceHolder)
                          {
                              tbl.Add(ctrl2.ID, ctrl2);
                          }
                      }
                  }
              }
  
              return tbl;
          }
      }
  </code></pre>