How to use a custom predicate sort with Python
<p>I have a list of lists like <code>[[1,2,"s"],[1,5,"e"],...]</code> where the 3rd value is always either <code>s</code> or <code>e</code>. How can I call <code>sort()</code> such that the list is sorted based on:</p>

<ol>
<li>the first index</li>
<li>if the first index is same, <code>s</code> comes first.</li>
</ol>

<p>Thanks</p>