Shuffle pageview on button press and persist order until pressed again

Custom Code

I'm making an app with Posts/Questions (in a pageview) with a comment section (from a firebase query). I wanted the user to see a random order of the Posts. I managed to do that with a query in the parent container en custom code dynamic children. (see images)

The problem: When a user opens the comment section and navigates back, the Posts are shuffled again which is very disorienting.

The user should be able to shuffle/randomize the pageview order with a button press and the pageview should keep that shuffled state until the button is pressed again. (and not shuffle on every page reload)

Thanks in advance!

What have you tried so far?

Checked the documentation, Asked copilot.

Did you check FlutterFlow's Documentation for this topic?
Yes
1