13.Foundations. Please help!


#1



Hello there! I'm at the Foundations level and I can't seem to complete this level. Plz help.


Replace this line with your code.


#2

@cynthiarose,
Please give the FULL code you are using...


#3

This is my code.

# library sorting code
books = ["Charlie and the Chocolate Factory", "War and Peace", "Utopia", "A Brief History of Time", "A Wrinkle in Time"]

# How might we sort! the books in alphabetical order? (Hint, hint)
books.sort! do |x|
    puts x
end

#4

@cynthiarose
They only want you to change the sorting order of the books-Array,
a code-block

do |x|
    puts x
end

is NOT needed !!

http://docs.ruby-lang.org/en/2.0.0/Array.html#method-i-sort-21


#5

Thank you so much! It worked.