title: How do I sort hash of hashes by value using perl?
body: <p>I have this code</p>
  
  <pre><code>use strict;
  use warnings;
  
  my %hash;
  $hash{'1'}= {'Make' =&gt; 'Toyota','Color' =&gt; 'Red',};
  $hash{'2'}= {'Make' =&gt; 'Ford','Color' =&gt; 'Blue',};
  $hash{'3'}= {'Make' =&gt; 'Honda','Color' =&gt; 'Yellow',};
  
  foreach my $key (keys %hash){       
    my $a = $hash{$key}{'Make'};   
    my $b = $hash{$key}{'Color'};   
    print "$a $b\n";
  }
  </code></pre>
  
  <p>And this out put:</p>
  
  <blockquote>
    <p>Toyota Red Honda Yellow Ford Blue</p>
  </blockquote>
  
  <p>Need help sorting it by Make. </p>