title: ordering dataframe according to a list, matching one of the columns in pandas
body: <p>I have a list of values. I have a dataframe where one of the columns contains the same values. How do I order dataframe same way list is ordered?</p>
  
  <p>list example:</p>
  
  <pre><code>[3,
   4,
  ...
   21,
   23,
   25,
   26]
  </code></pre>
  
  <p>dataframe example:</p>
  
  <pre><code>     0   1    2
  0   ND   3  0/1
  1   ND   4  0/1
  ...
  11  ND  21  0/1
  12  ND  23  0/1
  13  ND  25  0/1
  14  ND  26  0/1
  </code></pre>
  
  <p>I need to make sure that table is ordered according to the list. Column I need to match is column 1 in the dataframe.</p>
  
  <p>EDIT: replaced sort with order, because sort word is probably misleading</p>