I'm trying to sort intersections, so as to get the order of intersections along the path. This would be easy, if the curveLocation returned by getIntersections() had the offset property, but all I get is the point and the index.
Any ideas? Thanks!
Merging the arrays won't change the properties of each CurveLocation. As long as you test for intersections with respect to the same path, you can sort by the length property:
mergedArray.sort(function(a, b){ return a.length-b.length})