Skip to content

Commit

Permalink
Change release sorting from alphanumerically to numerically
Browse files Browse the repository at this point in the history
  • Loading branch information
rba committed Oct 17, 2020
1 parent 63e4a9f commit 09dc3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Releases.pm6
Expand Up @@ -28,7 +28,7 @@ class Releases {
method !get-releases() {
my @releases;
@releases.push: Release.new(dir => $_) for $!release-dir.dir;
@releases .= sort: { $^b.version leg $^a.version };
@releases .= sort: { $^b.version <=> $^a.version };
@releases;
}

Expand Down

0 comments on commit 09dc3ba

Please sign in to comment.