Save table sorting preferences and load them when page is opened

Save the last table sorting configuration. This probably requires an additional variable to be saved in the user.cfg file.