sort variables.