module Bundler::Molinillo::SpecificationProvider

def sort_dependencies(dependencies, activated, conflicts)

Returns:
  • (Array) - a sorted copy of `dependencies`.
    Parameters:
    • conflicts ({String => Array}) --
    • activated (DependencyGraph) -- the current dependency graph in the
    • dependencies (Array) --
      def sort_dependencies(dependencies, activated, conflicts)
        dependencies.sort_by do |dependency|
          name = name_for(dependency)
          [
            activated.vertex_named(name).payload ? 0 : 1,
            conflicts[name] ? 0 : 1,
          ]
        end
      end