You do not have to implement the code for descending sort. It is already done by Arrays class. What you need to do is implement a Comparator object having compare method which just compares the two objects and return appropriate results ( ie. -1 when o1 is greater than o2 etc.) Pass this comparator object as the second parameter to the sort() method.
Or
Just implement compareTo() method in the class of objects that you want to sort. In this case you just have pass the array of objects.
Read Comparator, Arrays.sort() API for more details.
HTH,
Paul.
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new
Pattern)
www.enthuware.com/jqplus
Try out the world's only WebCompiler!
www.jdiscuss.com