#sample solution
# 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)
puts books.sort!
# 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)
puts books.sort!
No comments:
Post a Comment