summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index 7121689f0..dcd8cc1e3 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -212,7 +212,7 @@ sub ask_from_entries_refH_powered_normalize {
foreach my $e (@$l) {
if (my $l = $e->{list}) {
- if ($e->{sort} || @$l > 10 && !$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 ];