rspec/rspec-core — pull request #660 by joliss (2012-08-13 21:32:33+00:00)
Title: Make glob order alphabetical, not file-system dependent

Dir[] and FileList[] have undefined order, so sorting them is strictly
better than not. Sorting should not have a performance impact in any
realistic use case: Sorting 100k shuffled elements is
near-instantaneous, and sorting 1M elements takes ~3 seconds, so file
system access time will always dominate.

One particular reason why this is useful is that undefined ordering is a
major source of flickering test suite failures.