Setting order of materials on meshes

I am trying to import a various amount of Meshes, that will all be using the same Materials. the problem is, when I import the meshes, even though I have set the materials up in the same order for each object, when i import to UE, the order gets messed up, so instead of 1,2,3 material order, the order is not consistent on all of the meshes. Is there any way to make it so the order is always the same for the materials?

I am using Maya 2022 fbx for the meshes and UE4 for the engine.