diff --git a/lib/elm_install/git_source.rb b/lib/elm_install/git_source.rb index 7db25e3..38d1b35 100644 --- a/lib/elm_install/git_source.rb +++ b/lib/elm_install/git_source.rb @@ -97,6 +97,8 @@ def matching_versions(constraints) .select do |version| constraints.all? { |constraint| constraint.satisfies?(version) } end + .sort + .reverse end Contract None => String