title: Sort a list of Class Instances Python
body: <p>I have a list of class instances - </p>
  
  <pre><code>x = [&lt;iteminstance1&gt;,...]
  </code></pre>
  
  <p>among other attributes the class has <code>score</code> attribute. How can I sort the items in  ascending order based on this parameter?</p>
  
  <p><strong>EDIT</strong>: The <code>list</code> in python has something called <code>sort</code>. Could I use this here? How do I direct this function to use my <code>score</code> attribute?</p>