Why doesnt this work?


#1

my_array = [3, 4, 8, 7, 1, 6, 5, 9, 2]

Call the sort! method on my_array below.

my_array should then equal [1, 2, 3, 4, 5, 6, 7, 8, 9].

my_array.sort


#2

Try

my_array = my_array.sort
print my_array