ensure the config array is sorted