title: Hash sorting alphabetiacly in ruby
body: <p>I have the following hash.</p>
  
  <pre><code>h = {
      "31d2fcd5-aec0-438d-895c-806fd0358c23"=&gt;{"name"=&gt;"q", 'database'=&gt;'mysql'},
      "69a05dea-d767-44b7-b40c-f76d0d12f8c1"=&gt;{"name"=&gt;"Qwerty", 'database'=&gt;'H2'},
      "69a05dea-d767-44b7-b40c-f76d0d121993"=&gt;{"name"=&gt;"b", 'database'=&gt;'postgresql'},
      "69a05dea-d767-44b7-b40c-f76d0d121994"=&gt;{"name"=&gt;"B", 'database'=&gt;'oracle'},
      "69a05dea-d767-44b7-b40c-f76d0d121995"=&gt;{"name"=&gt;"Apple", 'database'=&gt;'sqlite3'},
      "69a05dea-d767-44b7-b40c-f76d0d521996"=&gt;{"name"=&gt;"a", 'database'=&gt;'mariadb'},
      "69a05dea-d767-44b7-b40c-f76d0d1k1996"=&gt;{"name"=&gt;"A", 'database'=&gt;'mongodb'}
  }
  </code></pre>
  
  <p>After sorting I would like to see it in the following form</p>
  
  <pre><code>h = {
       "31d2fcd5-aec0-438d-895c-806fd0358c23"=&gt;{"name"=&gt;"a", 'database'=&gt;'mariadb'},
       "69a05dea-d767-44b7-b40c-f76d0d12f8c1"=&gt;{"name"=&gt;"A", 'database'=&gt;'mongodb'},
       "69a05dea-d767-44b7-b40c-f76d0d121993"=&gt;{"name"=&gt;"Apple", 'database'=&gt;'sqlite3'},
       "69a05dea-d767-44b7-b40c-f76d0d121994"=&gt;{"name"=&gt;"b", 'database'=&gt;'postgresql'},
       "69a05dea-d767-44b7-b40c-f76d0d121995"=&gt;{"name"=&gt;"B", 'database'=&gt;'oracle'},
       "69a05dea-d767-44b7-b40c-f76d0d521996"=&gt;{"name"=&gt;"q", 'database'=&gt;'mysql'},
       "69a05dea-d767-44b7-b40c-f76d0d1k1996"=&gt;{"name"=&gt;"Qwerty", 'database'=&gt;'H2'}
  }
  </code></pre>
  
  <p>Thanks in advance.</p>