Homing in wrong direction

I am setting up my vertex 3d printer and cant figure out why it moves to the left (x axis) when it should home to the right.
Is there a setting that can be reversed or have I done something wrong?
The wiring only seems to connect one way and it is wired the same as all other axis.
any ideas would be helpfull
thanks

Check the end stop for the X axis.
Try swapping the driver card between the X and Y axis to see if the problem moves.

Thanks for the input it got me thinking and tinkering .
What I eventually realized was the x home switch was not lighting up.
I took it out of the printer and removed the black cover to inspect the contacts finding a brake in one of the sensor contacts.
I soldered it together and reassembled it and all homed perfect.
Strange behavior but when all is well it works perfectly.

I have photos of what i am talking about but don’t see how to add them.
If there is a way let me know and I will post them.
Hope this helps someone.

You will need to post them to a free hosting website and put the link up here.
If the end stop was not powered the control board was not receiving a signal making it think the end stop was triggered.
So it will attempt to move away from the end stop.