I don't see anything about sorting functions in the question, so... (I'm gonna remove the answer if it bends or breaks the rules, let me know)
JavaScript 5656 96
function s(){alert(+prompt().split('').sort().join(''))}
JavaScript 69 (reversable)69 109 (79-10reversable)
function s(r){x=prompt().split('').sort();x=r?x.reverse():x;alert(+x.join(''))}
Can be golfed down a bit using EcmaScript 6 arrow functions:
ES6 5050 90
s=()=>{alert(+prompt().split('').sort().join(''))}
ES6 6363 103 (reversable) (73-10)
s=(r)=>{x=prompt().split('').sort();x=r?x.reverse():x;alert(+x.join(''))}