title: How to sort a list of tuples having mixed type elements in reverse order?
body: <p>I have:</p>
  
  <pre><code>a = [(3.13, ['a', 'b', 'c']), (6.25, ['d', 'e', 'f']), (12.5, ['g', 'h', 'i'])]
  </code></pre>
  
  <p>but when I print out I get:</p>
  
  <pre><code>for i in a:
      print(i[0])
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>3.13
  6.25
  12.5
  </code></pre>
  
  <p>What I want to achive is the following:</p>
  
  <p>OUTPUT:</p>
  
  <pre><code>12.5
  6.25
  3.13
  </code></pre>
  
  <p>I've tried : </p>
  
  <pre><code>for i in sorted(a, key = lambda x: x[0]):
      print(i[0])
  </code></pre>
  
  <p>but I got no effect on the output> I am trying to order my list of tuples.</p>