Find the correct coordinates and table of connectivity for the order 2 in FE resolution

Hello, I work on a resolution with finite elements and I need to find a way to extract the correct coordinates and table of connectivity on the mesh for the order 2.
I explain,

I created a mesh and after that, I used this code to find the coordinates and table of connectivity

mesh.ngmesh.SecondOrder()
mesh.ngmesh.Coordinates()
     
listCoor = []
for i in mesh.ngmesh.Coordinates():
     listCoor.append(i)
     listCoor = np.array(listCoor)
     #print(listCoor)
 
listConnectivity = []
for el in mesh.ngmesh.Elements2D():
     listConnectivity.append([x.nr for x in el.points])
     listConnectivity = np.array(listConnectivity)
     #print(listConnectivity)

But after do that and made a resolution of my problem, when I took a look on the matrix, I saw that some locations given by the previous code lines don’t tally with the way in which the matrix is ​​filled.

So, does it exist a way or a NGSolve command which would give directly the NGSolve mesh used for the resolution in order 2 or which would give the correct coordinates and table of connectivity on the mesh for the order 2
Thanks,