Get sorted three points
Convert acc. to X,Y,Z of the device