Since our numeric system is positional, the digits further to the right are worth more than those to the left.
So, you want to assign a bigger coefficient to the digits which is more valuable in order to achieve the greatest number possible.
This means that the answer is simply 9876543210