title: Sort a list according to another list in Python
body: <p>In Python, how can we sort <strong>array #2</strong>, according to <strong>array #1</strong>. What I mean is that <strong>array #1</strong> is the reference.</p>
  
  <p>This is sorted, according to some previous comparaison I did. It acts as a reference let's say:</p>
  
  <p><strong>array #1</strong>: [5, 1, 4, 3, 6, 2]</p>
  
  <p>Now, <strong>array #2</strong> contains the following:
  [1, 2, 4, 5, 6]</p>
  
  <p>How can we sort <strong>#2</strong> so that it becomes:
  [5, 1, 4, 6, 2]</p>
  
  <p>** EDIT **:</p>
  
  <p><strong>Array #2</strong>: We can't know if it will be the same size as <strong>#1</strong>, but it will always be as big, or smaller. It will always be a subset of <strong>Array #1</strong>.</p>