Delaunay mesh sorting components

hello everyone, I am using Delaunay mesh and I want to sort groups of vertical, horizontal, and diagonal lines separately.
i would appreciate if anyone can help me?

thank you !!

Hi,
maybe you could post a file with the geometry internalized.
Regards!

first find the two end points of all the mesh lines.
compare their xyz.
Here are some hints as to how to sort the curves:

  1. the horizontal curves have no vertical displacement.
  2. diagonal curves have the more xy displacement than the vertical curves