mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
implement sorting for menuconfig submenus
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5182 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0de0cbf022
commit
c08f41eff1
@ -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 New Issue
Block a user