Group data by frequency
<p>I am trying create a trending system that displays which keywords are trending by checking the occurrence of their usage.  I have able to get the count of occurences of the keywords into an array like this</p>

<pre><code>$keyword_occurences = array("pheed"=&gt;5, "php"=&gt;7, "love" =&gt; 700);
</code></pre>

<p>How do I display this in descending order of occurrence?</p>
