title: Python, sort a list by another list
body: <p>I have a list <code>a</code>:</p>
  
  <pre><code>a = ['c','d','b','a','e']
  </code></pre>
  
  <p>and a list <code>b</code>:</p>
  
  <pre><code>b = ['a001','b002','c003','d004','e005']
  </code></pre>
  
  <p>and how could I get my list <code>c</code> as following:</p>
  
  <pre><code>c = ['c003','d004','b002','a001','e005']
  </code></pre>
  
  <p>Basically sort <code>b</code> using part of each element, by the order defined in <code>a</code>.</p>
  
  <p>Many Thanks.</p>