Sort the letters of string in alphabetical order: Difference between revisions

Content added Content deleted
(/* {{header|jq}} formatting)
Line 360: Line 360:


=={{header|Raku}}==
=={{header|Raku}}==
===Simi-realistic version===
===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;