Curves has the option to flip the orientation: ink or light.
That is controlled in the Curves options.
Are you using the curves adjustment, or a curves adjustment layer?
For the direct adjustment, the options are in the dialog.
For the adjustment layer, the options are opened through the properties palette menu.