I came across this equation in a paper:
$$\int_\pi^{p_*}\left(\int_p^{p_*}h(u)\;\mathrm du\right)S'(p)\;\mathrm dp=\int_\pi^{p_*}[S(u)-S(\pi)]h(u)\;\mathrm du, 0\leq\pi\leq p_*$$
I am not sure if this is correct, as this is not the usual change of integration order for a double integral. Can someone please explain why this makes sense?
It is the usual change of order of integration. Draw a picture. When you change the order, you note that $\pi\le u\le p^*$ and, for fixed $u$, we have $\pi\le p\le u$. Then they apply the Fundamental Theorem of Calculus.