title: Sort array of objects
body: <p>I have an array of object literals like this:</p>
  
  <pre><code>var myArr = [];
  
  myArr[0] = {
     'score': 4,
     'name': 'foo'
  }
  
  myArr[1] = {
     'score': 1,
     'name': 'bar'
  }
  
  myArr[2] = {
     'score': 3,
     'name': 'foobar'
  }
  </code></pre>
  
  <p>How would I sort the array so it ascends by the 'score' parameter such that it would change to:</p>
  
  <pre><code>myArr[0] = {
     'score': 1,
     'name': 'bar'
  }
  
  myArr[1] = {
     'score': 3,
     'name': 'foobar'
  }
  
  myArr[2] = {
     'score': 4,
     'name': 'foo'
  }
  </code></pre>
  
  <p>Thanks in advance.</p>