DEV: ensure user export ordering is predictable (PR #13340)

Flaky spec due to random ordering for the post_actions table.

Introduces consistent ordering.

GitHub