14/19


#1

Please,
What is wrong with this

books = [ "A Brief History of Time", "A Wrinkle in Time"]

book_1 = "A Wrinkle in Time"

book_2 = "A Brief History of Time"
books.sort! {|book_1, book_2| book_1 <=> book_2}

Thanks!


#2
book_1 = "A Wrinkle in Time"

book_2 = "A Brief History of Time"

You do not need this. The point of an array is to regroup data.


#3

Thank you very much!!


#4

Please help stuck in "No Mans Land" I do not understand where I am going wrong???

Here is my code:

books = [ "A Brief History of Time", "A Wrinkle in Time"]

books.sort! {|book_1, book_2| book_1 <=> book_2}

Here is what it says when I try to save and submit:

"Oops, try again. It looks like your comparison doesn't return the correct value (1). Did you remember to compare book_1 <=> book_2 (in that order)?"

I do not understand what else I need to do??? Many thanks in advance!


#5

libro_1 = "Rayuela"

libro_2 = "El beso de la mujer araƱa"

libro_1<=>libro_2

that is the correct form.

good luck !


#6

or you could do:
book_1 <=> book_2
underneath the lines provided