add sorting to config.hdf variables