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

→‎{{header|J}}: include definitions
(J)
(→‎{{header|J}}: include definitions)
Line 537:
 
=={{header|J}}==
J's builtin is 'grade' and sort is a derived function whose domain includes sequences of characters, so:<lang J> /text0=:~ 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
/:~ text1
6,951

edits