Skip to content

Commit 9702a33

Browse files
committed
Loop over categories table sorted by key
1 parent 29b25be commit 9702a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Pod/Htmlify.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Website is export {
9797
method write-category-indices {
9898
say "Creating category index files";
9999
my @headers = qw{File Title Author};
100-
for $!categories.categories-table.kv -> $category-key, $title {
100+
for $!categories.categories-table.sort(*.key)>>.kv -> ($category-key, $title) {
101101
my $category = $!categories.category-with-key($category-key);
102102
my @examples = $category.examples.values;
103103
my @rows = @examples.map: {[.pod-link, .title, .author]};

0 commit comments

Comments
 (0)