This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Comparing arrays without regards for order
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Ever needed to compare two arrays to see if they had the same content, but the order of each wasn't necessarily the same? You can sort them each first: