So, here is how to do it with cards.  Basically, you look at the first 
card and compare it with the second.  If its smaller, you compare it to 
the next one, etc. etc. until you either find a smaller card or you 
don't.  If you do find a smaller card, you swap the cards.  If you 
don't, you leave them.

Then you move on to the second card and do the same thing.  You do this 
until you get to the last card (which should be the biggest at this 
point).

After you do that, you have a sorted card deck and can put it in the 
"new" box.

How you translate that into ruby is where I am lost :/.

-- 
Posted via http://www.ruby-forum.com/.