]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ksort() the tags list
authorEvan Prodromou <evan@prodromou.name>
Thu, 31 Jul 2008 04:10:00 +0000 (00:10 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 31 Jul 2008 04:10:00 +0000 (00:10 -0400)
darcs-hash:20080731041000-84dde-09a4b1d69cc42b7380582d1a2f5d718b6e57dcd2.gz

actions/tag.php

index 8a3b8eaeb3af61a42f943f8cad377af7a826177d..3f379ffdf2a6374d00f631698af37a14192b2fe6 100644 (file)
@@ -110,6 +110,8 @@ class TagAction extends StreamAction {
                                $sum += $tags->weight;
                        }
 
+                       ksort($tw);
+                       
                        foreach ($tw as $tag => $weight) {
                                $this->show_tag($tag, $weight, $weight/$sum);
                        }