ss="n">keylist</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
        <span class="n">keylist</span><span class="o">.</span><span class="n">reverse</span><span class="p">()</span>
        <span class="n">dlist</span> <span class="o">=</span> <span class="p">[]</span>
        <span class="k">for</span> <span class="n">key</span> <span class="ow">in</span> <span class="n">keylist</span><span class="p">:</span>
            <span class="c">#print &quot;%s instances of %s&quot