FrameLabel reverses order of labels

According to the documentation for FrameLabel, the order of the arguments should be X-axis label first, then Y-axis label. But when I use FrameLabel->{“X”,“Y”} in ArrayPlot, the result is just the opposite.

ArrayPlot[zarr,ColorFunction->"Rainbow",Frame->True,FrameLabel->{"X","Y"}]

The Y-axis is labeled “X” and the X-axis is labeled “Y”
I am using version 13.2.0 on Mac OS 10.14.6.

The same reversed labels occur in version 14.3.0 on Windows 11. However, for the frame produced by Plot, the labels are correct. This appears to be a bug in ArrayPlot.