From fff406c0d039bd5094996a3ff0fa9c44173280ba Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 18 Aug 2001 22:42:57 +0000 Subject: readd the sorting based on size when no sorting is precised --- perl-install/interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/interactive.pm') diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 5a6d6df97..14c9eb8f0 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -240,7 +240,7 @@ sub ask_from_normalize { foreach my $e (@$l) { if (my $l = $e->{list}) { - if ($e->{sort}) { + if ($e->{sort} || @$l > 10 && !exists $e->{sort}) { my @l2 = map { may_apply($e->{format}, $_) } @$l; my @places = sort { $l2[$a] cmp $l2[$b] } 0 .. $#l2; $e->{list} = $l = [ map { $l->[$_] } @places ]; -- cgit v1.2.1