Sort a list by multiple attributes?
<p>I have a list of lists (which could have been tuples, but I digress) in a format such as:</p>

<pre><code>[12, 'tall', 'blue', 1]
[15, 'tall', 'black', 3]
[13, 'tall', 'blue', 8]
[9, 'short', 'blue', 3]
[1, 'short', 'black', 2]
[2, 'short', 'red', 9]
[4, 'tall', 'blue', 13]
</code></pre>

<p>If I wanted to sort by one element, say the tall/short element, I could do it via <code>s = sorted(s, key = itemgetter(1))</code></p>

<p>If I wanted to sort by BOTH tall/short and colour, I could do the sort twice.  Once for each element.  However, this is computationally ridiculous.  Is there a quicker way?</p>
