It doesn't matter that the order isn't the same. You have to use different indices anyway since the number of vertices very likely won't be the same as in the mdl7 file anymore.

Once you have the vertex buffer you have to build your index buffer. Loop through the mdl7 triangles again and do a look-up in your map to figure out the new indices.