title: Find the biggest number formed by digits of input numer
body: <p>I am trying to write a function that return the biggest number formed by the digits from an input integer number. 
  So if the input = 123584
  output should be = 854321</p>
  
  <p>My code is -</p>
  
  <pre><code>def maxNumber(inputNumber):
      x = len(str(inputNumber))
      max_number = []
      result= []
      while(x&gt;0):
          max_number.append(inputNumber%10)
          inputNumber = inputNumber/10
          x -= 1
      while(x&lt;(len(str(max_number)))):
          result.append(max(max_number))
          x += 1
      return result
  
  print maxNumber(1238675)
  </code></pre>
  
  <p>and off-course the output is not as I want. Please help. I am eager to learn all possible way to do it. </p>