lass="n">getSortedListOfItemFrequencies</span><span class="p">()</span>
        <span class="n">rangeFrequencies</span> <span class="o">=</span> <span class="p">{}</span>
        <span class="n">maximum</span> <span class="o">=</span> <span class="nb">max</span><span class="p">([</span><span class="n">i</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">fre</span><span class="o">.</span><span class="n">values</span><span class="p">()])</span>
        <span 