title: sort Javascript array by two numeric fields
body: <pre><code>grouperArray.sort(function (a, b) {
      var aSize = a.gsize;
      var bSize = b.gsize;
      var aLow = a.glow;
      var bLow = b.glow;
      console.log(aLow + &quot; | &quot; + bLow);      
      return (aSize &lt; bSize) ? -1 : (aSize &gt; bSize) ? 1 : 0;
  });
  </code></pre>
  <p>This code sorts the array by <code>gsize</code>, smallest to largest.</p>
  <p>How would I change it to sort first by <code>gsize</code> and then by <code>glow</code>?</p>