Determine the largest number that can be formed with all the figures given number.

In my opinion you take the number, it becomes a vector of numbers, sort the array and turn back vector of digits in number.

I think that is a way. OK, but how to do this (it becomes a vector of numbers) ?