title: Sorting a list depending on every other element in python
body: <p>If I have a list with elements which follows the structure:</p>
  
  <pre><code>[team1, points1, playedgames1, team2, points2, playedgames2, team3, points3, playedgames3]
  </code></pre>
  
  <p>and so on. An example (with 3 teams): </p>
  
  <pre><code>ls = ["Milan", 6, 2, "Inter", 3, 2, "Juventus", 5, 2]
  </code></pre>
  
  <p>and would like it to look like this:</p>
  
  <pre><code>["Inter", 3, 2, "Juventus", 5, 2, "Milan", 6, 2]
  </code></pre>
  
  <p>and so on for more teams. As you can see, the list is now sorted after the lowest point first. Essentially, it now is:</p>
  
  <pre><code>["team2, points2, playedgames2, team3, points3, playedgames3, team1, points2, playedgames2]
  </code></pre>
  
  <p>due to the fact that points2 had the lowest value. So, can I sort the list like this, with respect to the points but also to keep the structure of the list with (team, points, played games) and so on. Is this possible? </p>
  
  <p>The elements are retrieved from a text file.</p>