diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 080dc25585e8e..052017bc437ee 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -221,7 +221,7 @@ def list_casks else path.basename.to_s end - end.uniq + end.uniq.sort cask_paths.map { |name| Cask::CaskLoader.load(name) } else filtered_args = args.named.dup.delete_if do |n|