Skip to content

Commit

Permalink
Sort list of '--version'ed casks.
Browse files Browse the repository at this point in the history
'brew list --cask --version' produces an unsorted list.

Also, the cask part of 'brew list --version' is unsorted, while the
formulas are (still) sorted.
  • Loading branch information
ascherer committed Dec 24, 2024
1 parent 18cab73 commit 02560c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 02560c9

Please sign in to comment.