implement sorting for menuconfig submenus
SVN-Revision: 5182
This commit is contained in:
parent
ba5a7a6f83
commit
20e75631a1
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ sub print_category($) {
|
||||||
print "menu \"$cat\"\n\n";
|
print "menu \"$cat\"\n\n";
|
||||||
my %spkg = %{$category{$cat}};
|
my %spkg = %{$category{$cat}};
|
||||||
foreach my $spkg (sort {uc($a) cmp uc($b)} keys %spkg) {
|
foreach my $spkg (sort {uc($a) cmp uc($b)} keys %spkg) {
|
||||||
foreach my $pkg (@{$spkg{$spkg}}) {
|
my @pkgs = sort {
|
||||||
|
$a->{submenu}."->".$a->{name} cmp $b->{submenu}."->".$b->{name}
|
||||||
|
} @{$spkg{$spkg}};
|
||||||
|
foreach my $pkg (@pkgs) {
|
||||||
if ($cur_menu ne $pkg->{submenu}) {
|
if ($cur_menu ne $pkg->{submenu}) {
|
||||||
close_submenu();
|
close_submenu();
|
||||||
if ($pkg->{submenu}) {
|
if ($pkg->{submenu}) {
|
||||||
|
|
Loading…
Reference in a new issue