title: python - move some items on a list to the end
body: <p>I would like to perform the following action most <strong>efficiently</strong> :</p>
  
  <p>Lets say we have this list:</p>
  
  <pre><code>items = ['a','c','d','e','f','s'] #items are unique (can be a set, but its a list so items are ordered)
  special_items = ['e','a']
  </code></pre>
  
  <p>The result should be to convert <code>items</code> to be:</p>
  
  <pre><code>items = ['c','d','f','s','e','a'] # e,a now at the end
  </code></pre>
  
  <p><strong>My current solution is:</strong></p>
  
  <pre><code>items = [item for item in items if item not in special_items] #remove special items
  items.extend(special_items) #add them to the end of the list
  </code></pre>
  
  <p>It works fine, but not very efficient i believe.</p>