# File lib/rubygems/gem_path_searcher.rb, line 83 def init_gemspecs specs = Gem.source_index.map { |_, spec| spec } specs.sort { |a, b| names = a.name <=> b.name next names if names.nonzero? b.version <=> a.version } end