title: Sorting Values in Javascript
body: <p>I know to sort:</p>
  
  <pre><code>var num = [1, 10, 6] 
  </code></pre>
  
  <p>is </p>
  
  <pre><code>num.sort(function(a,b){
    return a - b;
  }
  </code></pre>
  
  <p>What I don't know is how to sort:</p>
  
  <pre><code>var num = [
  
         {"Bob": 1},
  
         {"Tim": 10},
  
         {"Tom": 6},
         ];
  </code></pre>
  
  <p>Any ideas??? Thank you!</p>