Inverting points on Spline

I created many splines for measurements. I wanted to use the endoscopy feature, but in the other direction that I placed the points. Is there an easy way to invert the order of the points?

In the Markups module, under control points > advanced you will find buttons to move control points up or down in the list.

Otherwise you can do this in python :

import numpy as np
curveNode = slicer.util.getNode('OC')
points_array = slicer.util.arrayFromMarkupsControlPoints(curveNode)
slicer.util.updateMarkupsControlPointsFromArray(curveNode, np.flip(points_array, axis=0))