I get the right result, but it won't allow me to continue for some reason. I get this error message: "Oops, try again. It looks like your method doesn't default to alphabetizing an array when it doesn't receive a second parameter." No idea what that's supposed to mean, because it does sort properly whether I want the array sorted normally or in reverse.
numbers = [7, 3, 1, 9, 5] def alphabetize(arr, rev=false) arr.sort! if rev arr.reverse! end end alphabetize(numbers, rev=true) puts numbers