How to sort a list in python based on internal list? : <p>I have a list as follow:</p>

<pre><code>list1 = [['10', 'John', 'python'], ['1', 'Sara', 'java'], ['3','Tom', 'C']]
</code></pre>

<p>and as sorted result I expect following outpt:</p>

<pre><code>3 Tom C
1 Sara Java
10 John python
</code></pre>

<p>in fact I want to sort it base on second parameter in internal list.
This code does not work:</p>

<pre><code>sort1 = sorted(list1, key=lambda x: x[0][1])
</code></pre>
