vertice sorting by what I can understand easily

I have a hard time understanding how the vertices are indexed or sorted you know C.object.data.vertices[…] by their xyz location, and when I try indexing them for extracting patterns like every C.object.data.vertices[a:a+3] for a in range(0,numverts,5) I expect their to be an ordination along say the x axis so I can resolv cylindrically from it however the distance seems to govern the sorted vertices, and I don’t seem to see how their being sorted but it happens anyone have a way to work with this and extract patterns?

They aren’t sorted in that sense, the order depends on creation time.

Check out this operator if you want to sort them: bpy.ops.mesh.sort_elements()