Hello. I just successfully passed this chapter but as I am totally new to programming and the logic behind it I am not sure I fully understood the code.
My question is: since the numbers in arr get sorted AND reversed within the alphabetize method, shouldn’t the output be reversed to [3,2,1]?
Since the normal .sort! (as I did in the picture) gives [1,2,3] I’m struggling to understand why the output of alphabetize(numbers) is the same, even though I used .reverse! ?