title: Breaking ties in Python sort
body: <p>I have a <code>list</code> of <code>tuple</code>s, each tuple contains two integers. I need to sort the the list (in reverse order) according to the difference of the integers in each tuple, but break ties with the larger first integer.</p>
  
  <p><strong>Example</strong></p>
  
  <p>For <code>[(5, 6), (4, 1), (6, 7)]</code>, we should get <code>[(4, 1), (6, 7), (5, 6)]</code>.</p>
  
  <p><strong>My way</strong></p>
  
  <p>I have already solved it by making a <code>dictionary</code> that contains the difference as the <code>key</code> and the tuple as the <code>value</code>. But the whole thing is a bit clumsy.</p>
  
  <p>What is a better way?</p>