Python sort a complicated list in list
<p>My list: </p>

<pre><code>a = [[["a", 0], ["b", 7], ['c', 3]], 9, [['d', 0], ['e', 5], ['f', 7]], 5, [['g', 8], ['h', 3]], 3, [['i', 0], ['j', 1], ['k', 3]], 3]
</code></pre>

<p>I want to sort the list by the number after "]]," as the list above like: 9, 5, 3 and 3.
I tried: </p>

<pre><code>a.sort(key=lambda x: x[1])
</code></pre>

<p>But i got error: TypeError: 'int' object has no attribute '<strong>getitem</strong>'</p>

<p>Please help, thanks!</p>