I think that you just need to split this pdf document into separate pages, and then combine them again in the right order. I recommend using this splitting tool
https://www.pdfplatform.com/split. I like this option because it's free. I think that paying for working with PDF documents is generally pointless, so all paid services are definitely not for me.