Put the dialogue in the correct order.