Code passes, yet code does not run the desired function


#1

In lesson #4, "Sorting", I entered this code:


def alphabetize(arr, rev=false)
alphebetize.sort!
end

numbers = [1,2,3,4,5]

alphabetize(numbers)


It returned this error:
undefined local variable or method `alphebetize' for #

Yet... it passed the code. I was able to advance, yet it did not mark it as done. I think it may be a bug, or a browser error.


#2

You have a typo on the second line. It doesn't recognize "alphebetize".