title: Python - 2d list max based on certain part of inner list
body: <p>So I have a 2-dimensional list (as in a list of lists) and I'm trying to find the largets inner list based on their third element.</p>
  
  <p>This is what I have so far, but it only returns <code>j[2]</code>, not the entire list <code>j</code> where <code>j[2]</code> is the biggest.</p>
  
  <pre><code>big = max([int(j[2]) for j in cur2])
  </code></pre>
  
  <p>What I want it to do is return the entire max list out of each of the lists inside of <code>cur2</code> dependent on the size of <code>int(j[2])</code></p>
  
  <p>Please don't refer to <a href="https://stackoverflow.com/questions/14883395/how-to-get-the-max-item-based-on-a-dependent-value">this question</a> because I don't really understand how to apply that answer to my situation.</p>