title: Sort two arrays the same way
body: <p>For example, if I have these arrays:</p>
  
  <pre><code>var name = ["Bob","Tom","Larry"];
  var age =  ["10", "20", "30"];
  </code></pre>
  
  <p>And I use <code>name.sort()</code> the order of the "name" array becomes:</p>
  
  <pre><code>var name = ["Bob","Larry","Tom"];
  </code></pre>
  
  <p>But, how can I sort the "name" array and have the "age" array keep the same order? Like this:</p>
  
  <pre><code>var name = ["Bob","Larry","Tom"];
  var age =  ["10", "30", "20"];
  </code></pre>