Venkatesh,
The answer here is to write a
Comparator which will allow you to specify the sorting algorithm you want to use for your collection.
The only thing to mention is that
you should read the javadoc and implement your class with care otherwise your sort could return odd results.
cheers, Pete
[ September 01, 2004: Message edited by: Pete Harris ]