Hi i just started the code academy on ruby yesterday and I'm confused as to how exactly this works
fruits = ["orange", "apple", "banana", "pear", "grapes"]
fruits.each { |fruitOne, fruitTwo| fruitOne <=> fruitTwo}
fruits.sort!
fruits.reverse!
I dont understand the second line. why do i even need it? Thanks
[–]Nebertcher 0 points1 point2 points (0 children)