Added ability to reorder RVars w.r.t Vars