title: How to sort a list of objects based on an attribute of the objects?
body: <p>I have a list of Python objects that I want to sort by a specific attribute of each object:</p>
  <pre><code>&gt;&gt;&gt; ut
  [Tag(name=&quot;toe&quot;, count=10), Tag(name=&quot;leg&quot;, count=2), ...]
  </code></pre>
  <p>How do I sort the list by <code>.count</code> in descending order?</p>