title: How to arrange/sort string in Oracle SQL - 11g
body: <p>I have a string an string "ADBDkK" and I need to sort it as "ABDDKk", like Arrays.sort() in java. I know it can be done by using PL/SQL but I need of this in Oracle SQL statement.</p>
  
  <p>Input:</p>
  
  <pre><code>ADBDkK
  ZXYABC
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>ABDDKk
  ABCXYZ
  </code></pre>