How can I organize pages in a PDF on my phone?

I received a scanned document where the pages are out of order and a couple are upside down. I only have my Android phone with me, so is there any way to rearrange and rotate PDF pages without a computer?

Xodo PDF on Android does this: open the file, use thumbnail view to rotate and drag pages into order, then save a copy. Free version worked fine for me.