(Sort characters in a string) Rewrite the sort function in Programming Exercise using the sort function introduced in Section 11.8. (Hint: Obtain a C-string from the string and apply the sort function to sort the characters in the C-string array, and obtain a string from the sorted C-string.) Write a test program that prompts the user to enter a string and displays the new sorted string. The sample run is the same as in Programming Exercise.
Programming Exercise. (Sort characters in a string) Write a function that returns a sorted string using the following header:
string sort(string& s)
Write a test program that prompts the user to enter a string and displays the new sorted string. Here is a sample run of the program:

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.