title: PHP sort inside loop
body: <p>I want to sort stuff while looping</p>
  
  <pre><code>$arr = array('c','a''b');
   foreach($arr as $alpha){
    sort($alpha);
    echo $alpha."-";
   }
  </code></pre>
  
  <p>and it should end up with a-b-c<br>
  how to get it done ?</p>