sort using vertexOrder