diff options
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/zsh.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index 59979015fe..67c0201440 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -133,5 +133,14 @@ sub parse_opts { push @list, $entry } + if ($parsing_main_options) { + @list = sort { + $a =~ /(.*?)\:/; my $ma = $1; + $b =~ /(.*?)\:/; my $mb = $1; + + length($mb) <=> length($ma) + } @list; + } + return @list; } |