The code throws an error: Oops, try again. It looks like your method doesn\t default to alphabetizing an array when it doesn't receive a second parameter.
def alphabetize(arr, rev=false) #is this not what the error is supposed to rep? the same code worked in the last #exercise! arr.sort! if rev==true arr.reverse! end end numbers= [5,4,3,65,3,5,3] puts alphabetize(numbers) puts alphabetize(numbers, true)