Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.19 KB | None | 0 0
  1. books = ["Charlie and the Chocolate Factory", "War and Peace", "Utopia", "A Brief History of Time", "A Wrinkle in Time"]
  2.  
  3. books.sort.reverse{ |firstBook, secondBook| firstBook <=> secondBook}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement