now sorts vertexarrays before drawing