Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Explicit alphanumeric sorting of files and categories
  • Loading branch information
andreoss committed Jun 5, 2015
1 parent 7911bc8 commit 49eeb3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Pod/Htmlify.pm6
Expand Up @@ -98,9 +98,9 @@ class Website is export {
method write-category-indices {
say "Creating category index files";
my @headers = qw{File Title Author};
for $!categories.categories-table.sort(*.key)>>.kv -> ($category-key, $title) {
for $!categories.categories-table.sort({ $^a.key cmp $^b.key })>>.kv -> ($category-key, $title) {
my $category = $!categories.category-with-key($category-key);
my @examples = $category.examples.values.sort(:by<filename>);
my @examples = $category.examples.values.sort({ $^a.filename cmp $^b.filename });
my @rows = @examples.map: {[.pod-link, .title, .author]};
my $category-index-pod;

Expand Down

0 comments on commit 49eeb3a

Please sign in to comment.