title: Python: sorting a list using two keys which sort in a different direction
body: <pre><code>&gt;&gt;&gt; from operator import itemgetter
  &gt;&gt;&gt; ul = [(10,2),(9,4),(10,3),(10,4),(9,1),(9,3)]
  &gt;&gt;&gt; ol = sorted(ul, key=itemgetter(0,1), reverse=True)
  &gt;&gt;&gt; ol
  [(10, 4), (10, 3), (10, 2), (9, 4), (9, 3), (9, 1)]
  </code></pre>
  
  <p>What I want is to sort reverse=False on the second key. In other words, I want the result to be:</p>
  
  <pre><code>[(10, 2), (10, 3), (10, 4), (9, 1), (9, 3), (9, 4)]
  </code></pre>
  
  <p>How do I do this?</p>