So let's say I have Wheel of Sun and Moon in play and cast a tutor that puts the card I searched for on top of my library. Let's say, Enlightened Tutor. In what order do things happen in then? Do I put the Enlightened Tutor at the bottom of my library and then shuffle (at which point it probably wouldn't be at the bottom anymore) or do I shuffle and then put the Enlightened Tutor at the bottom?
In either case I assume the enchantment I searched for would go on top at the very end?