title: Sort a string alphabetically using a function
body: <p>Imagine you were given a string and you had to sort that string alphabetically using a function. Example:</p>
  
  <pre><code>sortAlphabets( 'drpoklj' ); //=&gt; returns 'djklopr'
  </code></pre>
  
  <p>What would be the best way to do this?</p>