title: Sort letters in a string variable in alphabetical order
body: <p>I need to sort a string variable letters in alphabetical order in Stata. Can someone suggest a command or a method to do it? </p>
  
  <p>For example: I have a string variable with 1000 observations. So the method would sort the characters (letters) like this:</p>
  
  <pre><code>School--chloos 
  sort--orst
  akramabad-dabamarka
  </code></pre>