Skip to content

Commit

Permalink
RakuAST: make sorting of localizations stable
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 14, 2023
1 parent 401c11b commit 10bf44d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/RakuAST/L10N.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ my sub slangify($language, %hash) is export {
my @adverb-pc;
my @adverb-rx;
my @named;
for %hash.sort(*.key.fc) -> (:key($name), :value($string)) {
for %hash.sort(-> $a, $b {
$a.key.fc cmp $b.key.fc || $b.key cmp $a.key
}) -> (:key($name), :value($string)) {

# It's a sub / method name
if $name.starts-with('core-') {
Expand Down

0 comments on commit 10bf44d

Please sign in to comment.