diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-01-31 11:45:39 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-01-31 11:45:39 +0000 |
commit | cc9c97d2c8f4aee456549a87ce096f064f52a7e2 (patch) | |
tree | 3f26adf06ea8e948a7553e952f3686334e04b4ed /perl-install/interactive.pm | |
parent | 1df4975284fed183e2e27a6dce6aebceaf8fafba (diff) | |
download | drakx-cc9c97d2c8f4aee456549a87ce096f064f52a7e2.tar drakx-cc9c97d2c8f4aee456549a87ce096f064f52a7e2.tar.gz drakx-cc9c97d2c8f4aee456549a87ce096f064f52a7e2.tar.bz2 drakx-cc9c97d2c8f4aee456549a87ce096f064f52a7e2.tar.xz drakx-cc9c97d2c8f4aee456549a87ce096f064f52a7e2.zip |
(ask_many_from_list): fix sorting
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 89df5d925..6ffe776ab 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -167,7 +167,7 @@ sub ask_many_from_list { icon => may_apply($h->{icon2f}, $_, ''), } foreach @{$h->{list}}; if ($h->{sort}) { - $h->{list} = [ sort { $h->{e}{$a}{label} cmp $h->{e}{$b}{label} } @{$h->{list}} ]; + $h->{list} = [ sort { $h->{e}{$a}{text} cmp $h->{e}{$b}{text} } @{$h->{list}} ]; } } $o->ask_from_entries_refH($title, $message, [ map { my $h = $_; map { $h->{e}{$_} } @{$h->{list}} } @l ]) or return; |