sort values before saving them in config
use resource_stream instead of resource_string