title: Order a matrix by columns with priority in python
body: <p>i have the following matrix: </p>
  
  <pre><code>catch = [['fc', 2, 12, 2], 
   ['abcd', 1, 2, 0], 
   ['ab', 1, 0, 0], 
   ['cf', 1, 13, 0], 
   ['fc', 1, 14, 0], 
   ['f', 1, 11, 0]] 
  </code></pre>
  
  <p>and i want this matrix to be ordered by the fourth columns firstly (index 3), when the values of the fourth column are equals, order by the lenght of the string in the first column (index 0). </p>
  
  <p>i just used </p>
  
  <pre><code>catch.sort(key=lambda x: x[3]) 
  </code></pre>
  
  <p>to sort the matrix by fourth column </p>