title: Ordering multiple lists at once with one as base reference
body: <p>I am using <code>sklearn</code> to calculate some eigenvalues and eigenvectors, part of my problem is that I want to order the eigenvalues, calculate a cumulative sum over them and compare that number to a certain variance threshold. As soon as I know for example the first 3 eigenvalues are sufficient and will get me past that threshold, I will have to find the corresponding eigenvectors. </p>
  
  <p>Like this</p>
  
  <pre><code>base_list = [2,3,1,4]
  sorted_base_list = sorted(base_list, reverse=True)
  &gt;&gt;&gt; [4,3,2,1]
  second_list = [[3,3][1,1][4,4][2,2]]
  </code></pre>
  
  <p>Applying the re-ordering of <code>base_list</code> to <code>second_list</code> I would like to get this</p>
  
  <pre><code>second_list = [[2,2][1,1][3,3][4,4]]
  </code></pre>
  
  <p>In other words I want to have my eigenvector list of lists ordered in the same way as my eigenvalues.</p>
  
  <p>any suggestions are appreciated</p>