Create mesh from arrays: How to preserve order of vertices?

No, you cannot enforce that, as

  1. The order of vertices only makes sense in serial.
  2. Data locality is important for performance, and therefore it is reordered to ensure this.

A question that comes to mind:
Why do you need to preserve the vertex/node order?

You can get the mapping by looking at mesh.geometry.input_global_indices,
or: How to apply a boundary condition to a range of DOFs? - #7 by dokken