Fix sorting of vertex array for LOD.