Change order of flags