aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-075/simon-proctor/raku/ch-1.raku2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-075/simon-proctor/raku/ch-1.raku b/challenge-075/simon-proctor/raku/ch-1.raku
index 32c4e8d699..1ff6b48cfc 100644
--- a/challenge-075/simon-proctor/raku/ch-1.raku
+++ b/challenge-075/simon-proctor/raku/ch-1.raku
@@ -25,7 +25,7 @@ multi sub make-change( $amount, @coins ) {
@result.push( [$coin, |@change] );
}
}
- @result = @result.map( { $_.sort.Array } ).unique( with => &[~~] );
+ @result = @result.map( { $_.sort.reverse.Array } ).unique( with => &[~~] ).sort( { $^a.elems cmp $^b.elems } );
%change_cache{$amount} = @result;
return @result;
}