Sort result of BoxCollection#all

This commit is contained in:
Chris Roberts 2017-03-06 08:19:02 -08:00
parent 10cd188688
commit 009ca94167
1 changed files with 4 additions and 1 deletions

View File

@ -246,7 +246,10 @@ module Vagrant
end
end
end
# Sort the list to group like providers and properly ordered versions
results.sort_by! do |box_result|
[box_result[0], box_result[2], Gem::Version.new(box_result[1])]
end
results
end