title: How do I sort a zipped list in Python?
body: <p>What's the Pythonic way to sort a zipped list? </p>
  
  <p>code :</p>
  
  <pre><code>names = list('datx')
  vals  = reversed(list(xrange(len(names))))
  zipped = zip(names, vals)
  
  print zipped
  </code></pre>
  
  <p>The code above prints <strong>[('d', 3), ('a', 2), ('t', 1), ('x', 0)]</strong></p>
  
  <p>I want to sort <strong>zipped</strong> by the values. So ideally it would end up looking like this <strong>[('x', 0), ('t', 1), ('a', 2), ('d', 3)]</strong>.</p>