reorder (Autotest)

    # File lib/autotest.rb, line 437
      def reorder files_to_test
        case self.order
        when :alpha then
          files_to_test.sort_by { |k,v| k }
        when :reverse then
          files_to_test.sort_by { |k,v| k }.reverse
        when :random then
          max = files_to_test.size
          files_to_test.sort_by { |k,v| rand(max) }
        when :natural then
          (self.find_order & files_to_test.keys).map { |f| [f, files_to_test[f]] }
        else
          raise "unknown order type: #{self.order.inspect}"
        end
      end