Listen and put the dialogue in the correct order