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 !!

maybe you could post a file with the geometry internalized.

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