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 |
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. |
|||
⚫ | |||
⚫ | |||
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> |
||