How to map list of pipes to list of location lines after lines are re-organized to different list structure

yes, same task, add fittings to multiple set of pipes instead of just one set of pipes, so pipes need to be sorted, do pipes have ordering tool?

perhaps you can expand that loveable Python tool to accommodate multiple set of curves instead of just one set of curves @ Sort 3D lines so they can be joined eventualluy - Revit - Dynamo