If i have a string is there a built in function to sort the characters or would I have to write my own?
for example:
string word = "dabc";
I would want to change it so that:
string sortedWord = "abcd";
Maybe using char is a better option? How would I do this in C++?
std::sort
?