BUG: change overload order to play nice with pyright.
BUG: change overload order to play nice with pyright.

Pyright just chooses the first matching type whenever there is ambiguity in type resolution, which leads to NoReturn for the cross function in certain situations. Other overloads were changed to match. See ticket #22146

endolith/numpy,mattip/numpy,numpy/numpy,mattip/numpy,mhvk/numpy,charris/numpy,charris/numpy,mhvk/numpy,endolith/numpy,numpy/numpy,numpy/numpy,mattip/numpy,numpy/numpy,mhvk/numpy,mhvk/numpy,endolith/numpy,mattip/numpy,charris/numpy,charris/numpy,mhvk/numpy,endolith/numpy