Not that easy @QualitySort.
You need to check for the fragments (inventory, bank withdraw, etc.) and apply a StateChanged callback function to it:
Here is an example for a scene StateChange
https://wiki.esoui.com/Scene_Manager:_On_scene_change
Fragments are below a scene and are reusable, like inventory fragment is used in inventory and player bank deposit e.g.
Then at SCENE_STATE_SHOWN or SCENE_FRGAMENT_STATE_SHOWN (or similar) state one needs to check the savedvars which sorting was applied last to the current sortheader.
And then reapply it.
At SCENE_STATE_HIDING one needs to save the current sorting order of the sort header to the savedvars.
I think there is no function to even change the sortheader "to the sort order you want to" but you'd need to simulate a press on the sortheader, if the current sort order is wrong. Not sure if there is a API fucntion to do this in other ways.