sort variables by dataset
revert to local config