title: Best way to sort a nested array (returned value vs sort & math.max)
body: <p>I've been wondering... Is it possible to access a returned value from a function/code block that is nested inside another code block?</p>
  
  <p>For example, I am trying to sort values in an array from largest to smallest using the .sort() method, and then take the largest from each nested array and push it to a new array:</p>
  
  <pre><code>function largestOfFour(arr) {
    for (var i = 0; i &lt; arr.length; i++) {
      console.log(arr[i]);
      arr[i].sort(function(a,b) {
        return b - a; // trying to access this new, organized array
      });
      var newArr = [];
      newArr.push(arr[i][0]);
    }
  }
  
  largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
  </code></pre>