rubygems/rubygems — pull request #273 by mpapis (2012-02-09 10:15:17+00:00)
Title: additional sort gem specs in reverse order to GEM_PATH

it looks like `GEM_PATH` was used in reverse order then `PATH`

this is related to RVM bug report https://github.com/wayneeseguin/rvm/issues/741 and described a bit more in comment https://github.com/wayneeseguin/rvm/issues/741#issuecomment-3813776

although reported for RVM it should be easily reproducible without it