Sorting using 2 parameters
Hello,
I have a collection of objects which need to be sorted based on 2 parameters. One param is priority and the other is time. I need to sort this collection based on priority first. Every priority in turn could have a smaller collection which will be sorted based on time.
All I could think was to separate the initial collection into separate ones and implement comparable on each one in turn so that they are sorted based on the time.....
Any better way to do this folks?
Many thanks in advance

