coreyhaines/enumeradical — pull request #1 by thegrubbsian (2012-02-29 00:12:50+00:00)
Title: Added sort_like to enumerable.

This is something I have to do every now and then and it always results in some gnarly code. The use case is basically given an array of identifiers, I'd like to sort this other array of things in the order of the first array. My particular driving force was the need to pass a list of IDs to a finder in Mongo which unfortunately always returns the result set in the database order regardless of the array passed to the finder. Anyway, love the library.