As you begin to search your library, before changing the position of any cards, look at the bottom card. If it has reverse miracle, you may cast it from your library before continuing to search your library.