Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- books = ["Charlie and the Chocolate Factory", "War and Peace", "Utopia", "A Brief History of Time", "A Wrinkle in Time"]
- books.sort.reverse{ |firstBook, secondBook| firstBook <=> secondBook}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement