ass="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">tids</span><span class="p">):</span>
        <span class="n">tids</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
        <span class="n">cur</span><span class="o">=</span><span class="mi">0</span>
        <span class="n">per</span><span class="o">=</span><span class="nb">list</span><span class="p">()</span>
        <span class="n">sup</span><span class="o">=</span><span class="mi">0</span