[Solved] About Sorting String In C++
The simplest solution is to split the string into a collection of string then sort that collection and concatenate the result into a string again: you can use a custom comparator using the size of the string and feed it to std::stable_sort with the collection of strings to sort: // Your original string std::string your_string … Read more