I have two groups of numbers, each one in a coll, with one number per "row".
One group is a subset of the other - for example:
group A = 1 3 2 5 4
group B = 1 4 5
I want the ordering of the numbers in group B to follow the pattern set in group A; in the example above, I would like group B to be reordered like so:
1 5 4
I can think of brute force ways to do this, but I was looking for something "elegant" - any takers? I can also use lists rather than colls if that helps...