title: Sorting Characters Of A C++ String
body: <p>If i have a string is there a built in function to sort the characters or would I have to write my own?</p>
  
  <p>for example:</p>
  
  <pre><code>string word = "dabc";
  </code></pre>
  
  <p>I would want to change it so that:</p>
  
  <pre><code>string sortedWord = "abcd";
  </code></pre>
  
  <p>Maybe using char is a better option? How would I do this in C++?</p>