merlyn: Agreed, my "combination sort" isn't the greatest. But the
OP can combine the sort from other posts with the idea about changing the way his data is structured from my post to solve his problem.
My main point was about the data structure's design more closely modeling the data itself. But thanks for your comment anyways, it's very true.
update: subject line