Generate the deck in the order the solver expects.