Sort Q3D Scatter Data Array that contains many QVector3D.
Unsolved
General and Desktop

The Q3D Scatter Data Array consist of many QVector3D 3Dvectors. Each of the QVector3D in the Array is a 3D vector that consist of (x,y,z) value. I would like to arrange the Array which contains the 3D vectors, in order of smallest value of Z to largest and if there is replicate/same value of Z then arrange the smaller X value first. If both Z and X value the same then the order doesn't matter.
Can someone please enlighten me, will appreciate your help so much! thanks.