Fix to issue #1207: ordergreat must be external to the block, and this interacts with stack_reset_vars.