make ordering row-major to match labview