bubble_sort takes an array and uses Bubble Sort to go through and sort the array. bubble_sort_by takes an array and a block, yielding to the block to sort the array.