From 02560c9f1ab6f0cb4bcfe3565506177fa921ee38 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Tue, 24 Dec 2024 14:02:16 +0100 Subject: [PATCH] Sort list of '--version'ed casks. 'brew list --cask --version' produces an unsorted list. Also, the cask part of 'brew list --version' is unsorted, while the formulas are (still) sorted. --- Library/Homebrew/cmd/list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|