I can't imagine how someone would stack all 52 cards in a deck without passing it to another person. A few years ago I taught myself to stack maybe the top 5 cards and the bottom 5 cards and deal either the top or bottom card very quickly depending on what I wanted someone to have. That was mostly a matter of memorizing which card was which and practicing shuffling enough so that I could move a card to the top and then keep it there.
I'm sure with a little creativity one could figure something out. Figuring that out would certainly be easier than figuring out the order to put the cards in ;) Anyway, this is less about actually doing it and more about the coolness factor in knowing it's possible, and in seeing how to figure it out.