That will merely print those in an alphabetical order. I already have something similar, just disabled:
function print_tags(Page p) {
var Tag[] visibletags = $p->visible_tag_list();
var int counter = 0;
var string list;
var string text;
foreach var Tag t ($visibletags) {
if ($counter == size ($visibletags)) {
$list = $list + """<a href="$t.url">$t.name</a>""";
} else {
$list = $list + """<a href="$t.url">$t.name</a><br />""";
$counter++;
}
}
$text = box_item($list);
print_box("Tags", $text);
}
It was before the TagDetail and $t.use_count, but basically the same idea. I could update it, but I don't really want it.
Just experimenting with Tags page was interesting, and I like the ability to sort tags by number of times they were used... Shows immediately the most popular tag, etc.