From: Evan Prodromou Date: Thu, 31 Jul 2008 04:10:00 +0000 (-0400) Subject: ksort() the tags list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4bd68f89c39f82d2e11f689e57accb1a0673bc55;p=quix0rs-gnu-social.git ksort() the tags list darcs-hash:20080731041000-84dde-09a4b1d69cc42b7380582d1a2f5d718b6e57dcd2.gz --- diff --git a/actions/tag.php b/actions/tag.php index 8a3b8eaeb3..3f379ffdf2 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -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); }