order and move flags