Store image sorting preference in config file.