Put flag in order