Martin,
Congratulations on your promotion
You're close - and it isn't nearly as complicated as it looks. But skip the Array. Instead, use your Comparator to create a proper sorted set:
All that needs doing really is the comparator.
- Peter
[This message has been edited by Peter den Haan (edited October 25, 2001).]