How can I get the current sort culumn and the order? I need this because I want to save the order to a file so I can automatically load the order on restart.

Is it possible to get the culumn width too?