Sorting numbers

I am trying to write a solution that will take input from the user and provide an output after sorting it. i,e. if anyone gives input as 654321 my program will return 123456. Below is the code I have written so far. But it is returning the same without sorting. What mistake I am doing here?