Jump to content

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

m
(→‎{{header|J}}: include definitions)
Line 548:
{{a.#~<:#/.~a.,y}} text1
"".TTaaabbccdeeeeeeeeeeeeeefghhhhhiijklllmnnnnooooppqrrrrssssttttttuuuvvwxyyz</lang>
 
(Since there's no comparison between pairs in bucket sort, performance here is O(n) rather than O(n log n).)
 
=={{header|jq}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.