summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/zsh.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl
index 03d8bda6bd..572c2dc040 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;
}