Quantity-setting oligopoly with endogenous sequencing