title: Sort Python dictionary by it's keys using another Python list
body: <p>I have a <code>list</code> of words:</p>
  
  <pre><code>['apple', 'zoo', 'chicken', 'needle', 'car', 'computer']
  </code></pre>
  
  <p>I also have a <code>dictionary</code> with keys and values:</p>
  
  <pre><code>{'zoo': 42, 'needle': 32, 'computer': 18, 'apple': 39, 'car': 11, 'chicken': 12}
  </code></pre>
  
  <p>The keys of my <code>dictionary</code> are all from the <code>list</code> of words. How can I sort the <code>dictionary</code> so that the order of its keys is the same as the order of the words in the <code>list</code>? So once sorted, my <code>dictionary</code> should look like this:</p>
  
  <pre><code>{'apple': 39, 'zoo': 42, 'chicken': 12, 'needle': 32, 'car': 11, 'computer': 18}
  </code></pre>
  
  <p>Thanks so much!</p>