summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-31 00:10:00 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-31 00:10:00 -0400
commit4bd68f89c39f82d2e11f689e57accb1a0673bc55 (patch)
tree6f65aaeba1e5794ad589c7ced7817d969dd4f030
parent1dfddc0cd2708be5ac9e49a14d911e041a0bdf85 (diff)
ksort() the tags list
darcs-hash:20080731041000-84dde-09a4b1d69cc42b7380582d1a2f5d718b6e57dcd2.gz
-rw-r--r--actions/tag.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 8a3b8eaeb..3f379ffdf 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);
}