title: Sorting a heterogeneous list of objects in Python
body: <p>I have some custom objects and dictionaries that I want to sort.  I want to sort both the objects the dictionaries together.  I want to sort the objects by an attribute and the dictionaries by a key.</p>
  
  <pre><code>object.name = 'Jack'
  d = {'name':'Jill'}
  
  sort_me =[object, d]
  </code></pre>
  
  <p>How do I sort this list using the object's name attribute and the dictionary's 'name' key?</p>