When I hit save and submit, it works, but it doesn't sort my numbers! I would like to know how the code is actually supposed to look.
Replace this line with your code. def alphabetize(arr, rev=false) arr.sort! if rev == true arr.reverse! else return arr end end numbers = [8,3,7,1,5] puts numbers