Sort the letters of string in alphabetical order: Difference between revisions
Sort the letters of string in alphabetical order (view source)
Revision as of 12:24, 12 September 2021
, 2 years ago→{{header|Nim}}
Catskill549 (talk | contribs) (added AWK) |
|||
Line 363:
Sorted -> .aaccddeeeeeeffghhhiiiillmmmNnnooooooooorrrstttttttuwy
</pre>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>sortstring = Characters /* LexicographicSort /* StringJoin;
sortstring["Now is the time for all good men to come to the aid of their country."]</lang>
{{out}}
<pre>". aaccddeeeeeeffghhhiiiillmmmnnNooooooooorrrstttttttuwy"</pre>
=={{header|Nim}}==
|