Resort variables