scripts: completion.pl: sort the completion file for all shells

The reproducible builds effort in Debian has caught a regression in curl
8.13.0-rc1 but we were a bit slow to realize it. The ordering of the
completion file for fish is not deterministic so it can differ between
builds. Since there is no restriction about the order of the completion
file for fish, let's just sort it too.

Closes #16985
This commit is contained in:
Carlos Henrique Lima Melara 2025-04-05 19:53:51 -03:00 committed by Daniel Stenberg
parent b676ae3b2a
commit 2f5e4e0db4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -153,7 +153,7 @@ sub parse_main_opts {
$b =~ /([^=]*)/; my $mb = $1;
length($mb) <=> length($ma) || $ma cmp $mb
} @list if $shell eq 'zsh';
} @list;
return @list;
}