I'm a little confused about the descending order sorting. As far as I understand, you can switch the terms on either side of the
<=> or use an
else combination. I was wondering however, why this isn't used (taken from part 19):
fruits = ["orange", "apple", "banana", "pear", "grapes"] fruits.sort!.reverse!
This seemed to work in terms of reversing the order in the display, so I was wondering if there's a reason that the other two methods are preferred, or if it's wrong to use