Reorders vars