I can't quite picture what you are doing. Can you provide an example?
You may need either an additional layout or to place the portal inside a tab or slide control where different panels have different copies of the portal, but with different specified sort orders. The borders and panel of such a control need not be visible to establish the illusion that your portal is dynamically sorting into different orders. You can use a script to both sort the layout's records and select the specific panel to use to display the portal.