title: Perl: Sorting 2D array with multiple columns based on a particular column
body: <p>Pseudo code:</p>
  
  <pre><code>my @unsortedArray = { ["Harry", 10], ["Tim", 8], ["Joe", 3]};
  my @sortedArray = ?????
  </code></pre>
  
  <p>Final sortedArray should be sorted based on col-2 (integers), taking care of the 1-to-1 relationship with the "Name of the person" (col-1). Final result should look like:</p>
  
  <pre><code>sortedArray should be { ["Joe", 3], ["Tim", 8], ["Harry", 10] }; 
  </code></pre>