Alphabetize problem


#1

def alphabetize(arr, ref=false)

numbers = [1,2,3,4,5,6,7,8,9,0]
 arr.sort!
puts arr.numbers

end

?????


4/6 Ordering your Library - is this a typo?
#2

The array should not be inside the function.

alphabetize(numbers)

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.