Pixel order by findContours

Hello,
How to have or change the order of points in findContours to be clockwise ?
Thank you

to reverse the array, use cv::flip with flipcode 0

https://docs.opencv.org/3.4/d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441

to determine the order, use contourArea. it returns the signed area.

https://docs.opencv.org/3.4/d3/dc0/group__imgproc__shape.html#ga2c759ed9f497d4a618048a2f56dc97f1