please look at the attached file:
the sorting of a portal in each window is controlled by a flag stored in key value pairs maintained by a global field containing JSON key valuepairs. All works as expected if I use Refresh Window with flushing cache but doesn't with Refresh Portal.
What the Refresh Portal does is actually refreshing the portal in all windows (of the same layout) but then not sorting correctly.
Please review and fix!