title: Insert object in an ordered list basing on an attribute of the objects
body: <p>I'm developing a project for university. I have an ordered list of objects Node and I would like to insert a node in the right position, on the base of its attribute node.evaluation_function.</p>
  
  <p>At the moment every time I insert a new node I order the list in this way:</p>
  
  <pre><code>queue.append(node)
  queue.sort(key=lambda x: x.evaluation_function)
  </code></pre>
  
  <p>But I think this method is too slow because it reorders the list at every new insertion. 
  Is there a method to insert the object immediately at the right position?</p>