From 2fa8596302b4dadfb7a58d8529e2f4a8609c0884 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 6 Jun 2017 14:49:28 +0200 Subject: [PATCH] Sort `Hbc::installed`. --- Library/Homebrew/cask/lib/hbc/scopes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cask/lib/hbc/scopes.rb b/Library/Homebrew/cask/lib/hbc/scopes.rb index 149c2c3435..a469ae0fa6 100644 --- a/Library/Homebrew/cask/lib/hbc/scopes.rb +++ b/Library/Homebrew/cask/lib/hbc/scopes.rb @@ -27,6 +27,7 @@ module Hbc # TODO: speed up Hbc::Source::Tapped (main perf drag is calling Hbc.all_tokens repeatedly) # TODO: ability to specify expected source when calling CaskLoader.load (minor perf benefit) Pathname.glob(caskroom.join("*")) + .sort .map do |caskroom_path| token = caskroom_path.basename.to_s