You can use the method Arrays.sort(Object a, Comparator c) this allows you to create your own comparator to compare 2 Integers and thus create your own ordering.
For reversing the answer is very simple.
Since you got a solution already, I don't think there's any harm in giving away this code. Java's type system doesn't handle a lot of type inference, but you can do some neat tricks with what little it does offer:
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
You also have a Collections.reverseOrder() static method which returns a Comparator. It can be used to sort collections or arrays in reverseOrder.
Though you have already got the solution, would like to share this as it was quite helpful to me.
Thanks and Regards,