Python: sorting tuple by last name and handling lower cased first letters
<pre><code>&gt;&gt;&gt; from operator import itemgetter
&gt;&gt;&gt; l = [(1.23, 'Smith'), (2.34, 'Jones'), (3.45, 'de la Smith')]
&gt;&gt;&gt; ol = sorted(l, key=itemgetter(1))
&gt;&gt;&gt; ol
[(2.34, 'Jones'), (1.23, 'Smith'), (3.45, 'de la Smith')]
</code></pre>

<p>How do I get the below list without some kludge using multiple list comprehensions?</p>

<pre><code>[(3.45, 'de la Smith'), (2.34, 'Jones'), (1.23, 'Smith')]
</code></pre>
