dmgarland/BubbleSort — pull request #9 by jennojenno (2013-04-01 00:44:31+00:00)
Title: pull request - bubblesort 

Ok I feel a little slow but I couldn't get my while loops to work in the traditional way of comparing the first pair, then swapping places if the first was larger than the second (as a permanent change), then moving onto the next pair...

So instead I used the .min function for as many times as there were elements in the array, pushing the newest minimum number to a new array, creating an array with elements from smallest to largest. It's not exactly the way you asked for it but this will work with any array to sort!

I also could not figure out how to test... I tried making a method named bubble_sort in bubble-hilo.rb but that didn't work so I took it out. I will have to ask for help for this feature.