Question: How can I sort a list of list according to a certain element in side the list of list?

<p>Hello Everyone.</p>
<p>Suppose I have a list of list.</p>
<p>[[1,2,3,4],[2,3,5,5],[3,4,4,6],[4,5,5,7]]</p>
<p>I want to sort this list <b>descendingly </b>according to its <b>third </b>element.</p>
<p>So it becomes:</p>
<p>[[1,2,3,4],[3,4,4,6],[2,3,5,5],[4,5,6,7]]</p>
<p>and then I want to sort it <b>descendingly </b>accoring to its <b>fourth </b>element.</p>
<p>So it becomes:</p>
<p>[[1,2,3,4],[2,3,5,5],[3,4,4,6],[4,5,6,7]]</p>
<p>Is there any way to acheive this?</p>
<p>Thank you in advance.</p>
Please Wait...