Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we sort sub-index output
  • Loading branch information
Mouq committed Jun 16, 2014
1 parent ff624ef commit 8569817
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions htmlify.p6
Expand Up @@ -650,9 +650,13 @@ sub write-index-files($dr) {
say "Writing html/$kind-$subkind.html ...";
spurt "html/$kind-$subkind.html", p2h(pod-with-title(
"Perl 6 {$subkind.tc} {$kind.tc}s",
pod-table($dr.lookup($kind, :by<kind>).grep({$subkind .subkinds}).map({
[set(.map: {.subkinds // Nil}).list.join(', '), pod-link(.name, .url), .summary]
}))
pod-table($dr.lookup($kind, :by<kind>)\
.grep({$subkind .subkinds})\ # XXX
.categorize(*.name).sort(*.key)>>.value\
.map({
[set(.map: {.subkinds // Nil}).list.join(', '), pod-link(.name, .url), .summary]
})
)
), $kind);
}

Expand Down

0 comments on commit 8569817

Please sign in to comment.