Vertex Sorting

Hi, I have a question about soring of vertex array.
I have calculate all the intersection point of 2 triangle mesh and found that the points are distributed on different part of the mesh. Is there any algorithm that can sort the vertices in the array so that it can produce a smooth contour line on the surface of triangle mesh?