partially fix the bug: by clicking "show the flag symbol", the order of the variables in gt4 will change but the rownames (the first column of gt4) doesn't.