If you’re looking to swap the physical Axis, this should help (and is what I followed when I did mine).
This assumes you are running the Marlin firmware: