Skip to content

Commit

Permalink
EnumMap.perl should sort, not shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed May 9, 2015
1 parent 9047503 commit ba654d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/EnumMap.pm
Expand Up @@ -49,7 +49,7 @@ my class EnumMap does Associative { # declared in BOOTSTRAP
multi method perl(EnumMap:D:) {
self.^name
~ '.new('
~ self.pairs.pick(*,:eager).map({.perl}).join(', ')
~ self.pairs.sort.map({.perl}).join(', ')
~ ')';
}

Expand Down

0 comments on commit ba654d8

Please sign in to comment.