Is there a built-in method for sorting characters in a string, or do I have to construct my own?
string word = "dabc";
I would want to change it so that:
string sortedWord = "abcd";
Perhaps char is a better option?
How would I go about doing this in C++?