title: Sort the top ten results
body: <p>I am getting a list in which I am saving the results in the following way</p>
  
  <pre><code>City Percentage
  Mumbai  98.30
  London 23.23
  Agra    12.22
  .....
  </code></pre>
  
  <p>List structure is [["Mumbai",98.30],["London",23.23]..]</p>
  
  <p>I am saving this records in form of a list.I need the list to be sort top_ten records.Even if I get cities also, it would be fine.</p>
  
  <p>I am  trying to use the following logic, but it fails for to provide accurate data</p>
  
  <pre><code>if (condition):
      if b not in top_ten:
          top_ten.append(b)   
          top_ten.remove(tmp)
  </code></pre>
  
  <p>Any other solution,approach is also welcome.</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <pre><code>for a in sc_percentage:
              print a
  </code></pre>
  
  <p>List I am getting</p>
  
  <pre><code>(&lt;ServiceCenter: DELHI-DLC&gt;, 100.0)
  (&lt;ServiceCenter: DELHI-DLE&gt;, 75.0)
  (&lt;ServiceCenter: DELHI-DLN&gt;, 90.909090909090907)
  (&lt;ServiceCenter: DELHI-DLS&gt;, 83.333333333333343)
  (&lt;ServiceCenter: DELHI-DLW&gt;, 92.307692307692307)
  </code></pre>