Hi Glen: I don't think i described what I'm doing properly:
My user selects the objects they want. These objects are polygons. For each poly, i use selectCrossingPoly to give me all the lines that are inside. I set my collection equal to the result set.
After, for each line in the result set, I do a selectCrossingWindow to find the line that's closest to it and then join them. While doing so, if I do join the line, I want to look in the collection to verify that this line's object id is in between the 2 lines i joined it to. if it's not, i want to move it so that it is.
The reason I want them in this order is because i need to place blocks along each line at a paticular distance (e.g. 2 per ft). in doing so, i may have distance left over from the previous line and if so, i need to calculate that into the distance I need to go along the line it was joined with before placing the next block on the line.
It's hard to explain...so I hope I did ok.
Is it possible for me to manipulate the collection like this?
Maybe I'm going about this the wrong way...and need to try instead to get them into the correct order in the first place as Draftek suggested.
thanks again,
Proctor