We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7911bc8 commit 49eeb3aCopy full SHA for 49eeb3a
lib/Pod/Htmlify.pm6
@@ -98,9 +98,9 @@ class Website is export {
98
method write-category-indices {
99
say "Creating category index files";
100
my @headers = qw{File Title Author};
101
- for $!categories.categories-table.sort(*.key)>>.kv -> ($category-key, $title) {
+ for $!categories.categories-table.sort({ $^a.key cmp $^b.key })>>.kv -> ($category-key, $title) {
102
my $category = $!categories.category-with-key($category-key);
103
- my @examples = $category.examples.values.sort(:by<filename>);
+ my @examples = $category.examples.values.sort({ $^a.filename cmp $^b.filename });
104
my @rows = @examples.map: {[.pod-link, .title, .author]};
105
my $category-index-pod;
106
0 commit comments