Sort the letters of string in alphabetical order: Difference between revisions
Content added Content deleted
(J) |
(→{{header|J}}: include definitions) |
||
Line 537: | Line 537: | ||
=={{header|J}}== |
=={{header|J}}== |
||
J's builtin is 'grade' and sort is a derived function whose domain includes sequences of characters, so:<lang J> |
J's builtin is 'grade' and sort is a derived function whose domain includes sequences of characters, so:<lang J> text0=: 'This is a test' |
||
text1=: 'The sentence "The quick brown fox jumps over the lazy dog" uses every letter in the alphabet.' |
|||
/:~ text0 |
|||
Taehiissstt |
Taehiissstt |
||
/:~ text1 |
/:~ text1 |