How do you remember the order of surahs?

I am having issues with with which surah comes after which when reciting to my teacher. He has to prompt me for me to remember, and told me that I must know which surah comes before which. How do you remember them?

I thought of memorizing the list of surahs, end to beginning, for the surahs I have memorized or am memorizing, by repeating the surah names over and over. Or by repeating the surahs itself, one after another, and learning that way, or by using memory techniques like memory palace to memorize them. How do you do it?