title: How to sort an array of integers in descending order of the first digit?
body: <p>How can I sort a list of integers in Java in a way that would produce the following output? </p>
  
  <p>Input : [7,8,32,97,27,2]</p>
  
  <p>Output : [97,8,7,32,27,2]</p>
  
  <p>The required ordering:</p>
  
  <p>First the numbers should be sorted in descending order of their first digit, then in descending order of their second digit, and so on...</p>