Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Loop over categories table sorted by key
  • Loading branch information
Paul Cochrane committed May 7, 2015
1 parent 29b25be commit 9702a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/Htmlify.pm6
Expand Up @@ -97,7 +97,7 @@ class Website is export {
method write-category-indices {
say "Creating category index files";
my @headers = qw{File Title Author};
for $!categories.categories-table.kv -> $category-key, $title {
for $!categories.categories-table.sort(*.key)>>.kv -> ($category-key, $title) {
my $category = $!categories.category-with-key($category-key);
my @examples = $category.examples.values;
my @rows = @examples.map: {[.pod-link, .title, .author]};
Expand Down

0 comments on commit 9702a33

Please sign in to comment.