summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-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);
}