Sort the letters of string in alphabetical order: Difference between revisions
Content added Content deleted
(/* {{header|jq}} formatting) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 360: | Line 360: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
=== |
===Semi-realistic version=== |
||
<lang perl6>sub sort_within_string ( $_ is copy ) { |
<lang perl6>sub sort_within_string ( $_ is copy ) { |
||
constant @lexographic_order = sort *.fc, map &chr, 1..255; |
constant @lexographic_order = sort *.fc, map &chr, 1..255; |