puppetlabs/puppet — pull request #517 by mmrobins (2012-02-20 22:30:07+00:00)
Title: Maint/2.7.x/fix enviornment sort spec failure

The module_requirements method was sorting the requirements, but only as
it went along, not for the entire list of requirements that got put in
the data structure. This caused intermittent test failures since
sometimes the results would come out in a different order than the
specs asserted.

This moves the sort to happen *after* the data is all in.