Interface added for automatic sorting
Automatic sort settings are now stored when program closes.