Since you have the integrals specifically, why not just evaluate them? On the LHS
$$\int_0^{\infty} dt \, e^{-x^2 t} \sin{t} = \operatorname{Im} \left [\int_0^{\infty} dt \, e^{-(x^2-i) t} \right ] = \operatorname{Im} \left [\frac1{x^2-i} \right ] = \frac1{x^4+1}$$
$$\int_0^{\infty} \frac{dx}{x^4+1} = \frac{i 2 \pi}{(1-i) (4 e^{i 3 \pi/4})} = \frac{\pi}{2 \sqrt{2}}$$
On the RHS:
$$\int_0^{\infty} dx \, e^{-x^2 t} = \frac12 \sqrt{\frac{\pi}{t}}$$
$$\frac{\sqrt{\pi}}{2} \int_0^{\infty} dt \, \frac{\sin{t}}{\sqrt{t}} = \frac{\sqrt{\pi}}{2}\int_{-\infty}^{\infty} du \, \sin{u^2} = \frac{\pi}{2 \sqrt{2}}$$
Note:
$$\int_{-\infty}^{\infty} du \, \sin{u^2} = 2 \operatorname{Im} \left [\int_{0}^{\infty} du \, \, e^{i u^2} \right ] = 2 \operatorname{Im} \left [e^{i \pi/4}\int_{0}^{\infty} dv \, \, e^{-v^2} \right ] = \frac{\sqrt{\pi}}{\sqrt{2}}$$
So, there you go, you can reverse the order of integration.