diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl index 3422572d16..7f7dc6d4ee 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -276,8 +276,12 @@ menu "Target Devices" EOF foreach my $target (@target) { - my $profiles = $target->{profiles}; - foreach my $profile (@{$target->{profiles}}) { + my @profiles = sort { + my $x = $a->{name}; + my $y = $b->{name}; + "\L$x" cmp "\L$y"; + } @{$target->{profiles}}; + foreach my $profile (@profiles) { next unless $profile->{id} =~ /^DEVICE_/; print <{conf}_$profile->{id}