X - axis movement is reversed

can I do that by simply swapping the connectors or do I have to swap the driver PCBs?