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

Content added Content deleted
m (used generic term(s) for what to create.)
(Further clarification to task description.)
Line 2: Line 2:


;Task:
;Task:
Write a function/program/subroutine/procedure to sort the characters of a string in alphabetical order.
Write a function/program/subroutine/procedure to sort the characters of a string in lexicographical order.


A ''character'' for this purpose should be whatever is natural for your language.
Show the results here on this page.

Show the results here on this page. White-space may be optionally removed.


The case   (uppercase and lowercase)   of any letters should be preserved.
The case   (uppercase and lowercase)   of any letters should be preserved.


Write the function even your language has a built-in function for it.
Write the function even if your language has a built-in function for it.
<br><br>
<br><br>